diff --git a/server/auth/providers/google.js b/server/auth/providers/google.js index 13b3f3a23..334de42b6 100644 --- a/server/auth/providers/google.js +++ b/server/auth/providers/google.js @@ -36,7 +36,6 @@ if (GOOGLE_CLIENT_ID) { clientID: GOOGLE_CLIENT_ID, clientSecret: GOOGLE_CLIENT_SECRET, callbackURL: `${env.URL}/auth/google.callback`, - prompt: "select_account consent", passReqToCallback: true, store: new StateStore(), scope: scopes, @@ -87,7 +86,13 @@ if (GOOGLE_CLIENT_ID) { ) ); - router.get("google", passport.authenticate(providerName)); + router.get( + "google", + passport.authenticate(providerName, { + accessType: "offline", + prompt: "select_account consent", + }) + ); router.get("google.callback", passportMiddleware(providerName)); }