Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix: add prompt select_account for google login (#4415)

Peng Xiao6e79858f41c2
diff --git a/apps/server/src/modules/auth/next-auth-options.ts b/apps/server/src/modules/auth/next-auth-options.ts
index fc122c3dad..48ab728bda 100644
--- a/apps/server/src/modules/auth/next-auth-options.ts
+++ b/apps/server/src/modules/auth/next-auth-options.ts
@@ -158,6 +158,9 @@ export const NextAuthOptionsProvider: FactoryProvider<NextAuthOptions> = {
clientSecret: config.auth.oauthProviders.google.clientSecret,
checks: 'nonce',
allowDangerousEmailAccountLinking: true,
+ authorization: {
+ params: { scope: 'openid email profile', prompt: 'select_account' },
+ },
})
);
}