Skip to content

Commit f46f7e7

Browse files
committed
Prompt for Google sign-in every time on log in.
1 parent 6f1c66d commit f46f7e7

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/backend/auth/options.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ export const getNextAuthOptions = (
1010
GoogleProvider({
1111
clientId: process.env.GOOGLE_CLIENT_ID as string,
1212
clientSecret: process.env.GOOGLE_CLIENT_SECRET as string,
13+
authorization: {
14+
params: {
15+
prompt: "login", // Prompt for Google sign-in ("Choose an account") every time on log in.
16+
},
17+
},
1318
}),
1419
],
1520
adapter: createPersistedAuthAdapter(db),

0 commit comments

Comments
 (0)