Skip to content

Commit

Permalink
Prompt for Google sign-in every time on log in.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrabbitt committed Oct 16, 2024
1 parent 962b1f3 commit 1fd186a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/backend/auth/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ export const getNextAuthOptions = (
GoogleProvider({
clientId: process.env.GOOGLE_CLIENT_ID as string,
clientSecret: process.env.GOOGLE_CLIENT_SECRET as string,
authorization: {
params: {
prompt: "login", // Prompt for Google sign-in ("Choose an account") every time on log in.
},
},
}),
],
adapter: createPersistedAuthAdapter(db),
Expand Down

0 comments on commit 1fd186a

Please sign in to comment.