From cf9cffe4fdc105b2a7ae1c8f806c92192c5e5905 Mon Sep 17 00:00:00 2001 From: Usman Baig Date: Thu, 22 Jan 2026 22:17:24 +0100 Subject: [PATCH] fix(auth): add prompt parameter to OAuth login URL to improve user account selection experience --- lib/api/oauth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/api/oauth.ts b/lib/api/oauth.ts index d3100de..5b81f2a 100644 --- a/lib/api/oauth.ts +++ b/lib/api/oauth.ts @@ -55,7 +55,7 @@ export async function initiateOAuthFlow(redirectPath = '/auth/callback') { const path = redirectPath.startsWith('/') ? redirectPath : `/${redirectPath}` const redirectUri = encodeURIComponent(`${baseUrl}${path}`) - const loginUrl = `${AUTH_URL}/login?client_id=pulse-app&redirect_uri=${redirectUri}&response_type=code&state=${state}&code_challenge=${codeChallenge}&code_challenge_method=S256` + const loginUrl = `${AUTH_URL}/login?client_id=pulse-app&redirect_uri=${redirectUri}&response_type=code&prompt=select_account&state=${state}&code_challenge=${codeChallenge}&code_challenge_method=S256` window.location.href = loginUrl }