forked from github-starred/komodo
The GetLoginOptions response was cached in a OnceLock, meaning it was computed once at startup and never updated. When the OIDC client was re-initialized (e.g. after config changes), the login options endpoint would still return the stale cached value, causing the UI to show outdated OIDC button state. Replace the static OnceLock cache with a function that reads the current OIDC client state on each request, so the response always reflects whether OIDC is currently available. Also add a 30-second polling interval to the frontend's login options query so the login page picks up server-side changes without requiring a hard refresh. Fixes #1022