Skip to content

Commit

Permalink
fix: add prompt select_account for google login (#4415)
Browse files Browse the repository at this point in the history
  • Loading branch information
pengx17 committed Sep 20, 2023
1 parent e276417 commit 6e79858
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/server/src/modules/auth/next-auth-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' },
},
})
);
}
Expand Down

0 comments on commit 6e79858

Please sign in to comment.