Skip to content

Commit

Permalink
Allow to change google account after logout
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis960 committed Sep 8, 2024
1 parent 3a65d6c commit 726607b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Server/src/routes/auth/+page.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export const actions = {
sameSite: "lax"
});
const url = await google.createAuthorizationURL(state, codeVerifier);
url.searchParams.set("prompt", "select_account");

event.cookies.set("google_oauth_state", state, {
path: "/",
Expand Down

0 comments on commit 726607b

Please sign in to comment.