From 652e91acdaf7d5cd7396feefb05a89b8878e81a2 Mon Sep 17 00:00:00 2001 From: Koen Oostveen Date: Tue, 19 May 2026 20:54:49 +0200 Subject: [PATCH 1/2] Fix OIDC logins in the account switcher failing due to the router ignoring login attempts The router only lets you visit `/home` or the like if `addAccount` is unset, but this did not account for `loginToken`. Now, if `loginToken` is set, you visit the `/login/server` route instead of being redirected to `/home`, allowing the account switcher to work as intended. --- src/app/pages/Router.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/pages/Router.tsx b/src/app/pages/Router.tsx index aec62cc86..56c24a899 100644 --- a/src/app/pages/Router.tsx +++ b/src/app/pages/Router.tsx @@ -119,6 +119,7 @@ export const createRouter = (clientConfig: ClientConfig, screenSize: ScreenSize) // Allow reaching the login page with ?addAccount=1 even when already logged in const url = new URL(request.url); if (url.searchParams.get('addAccount') === '1') return null; + if (url.searchParams.has('loginToken')) return null; if (hasStoredSession()) return redirect(getHomePath()); return null; }} From 46dc6e64c42bd1b41a9163324ed4489321b26201 Mon Sep 17 00:00:00 2001 From: Koen Oostveen Date: Wed, 20 May 2026 01:26:44 +0200 Subject: [PATCH 2/2] Add knope changeset --- .changeset/fix-oidc-account-switcher.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/fix-oidc-account-switcher.md diff --git a/.changeset/fix-oidc-account-switcher.md b/.changeset/fix-oidc-account-switcher.md new file mode 100644 index 000000000..2e652f090 --- /dev/null +++ b/.changeset/fix-oidc-account-switcher.md @@ -0,0 +1,5 @@ +--- +default: patch +--- + +Fix account switching and logging in with multiple (SSO) accounts silently failing