mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
fix(core): only sign out previous account in web oauth (#8290)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user