diff --git a/packages/frontend/core/src/desktop/pages/auth/oauth-login.tsx b/packages/frontend/core/src/desktop/pages/auth/oauth-login.tsx index ed4ff242d0..179ca4f677 100644 --- a/packages/frontend/core/src/desktop/pages/auth/oauth-login.tsx +++ b/packages/frontend/core/src/desktop/pages/auth/oauth-login.tsx @@ -34,8 +34,10 @@ export const loader: LoaderFunction = async ({ request }) => { const client = searchParams.get('client') ?? 'web'; const redirectUri = searchParams.get('redirect_uri'); - // sign out first - await fetch('/api/auth/sign-out'); + // sign out first, web only + if (client === 'web') { + await fetch('/api/auth/sign-out'); + } const paramsParseResult = oauthParameters.safeParse({ provider,