Skip to content

Open source CapCut alternative.

TypeScript

fix(site): google sign-in always shows the account chooser

David Le4c3b07567082
diff --git a/site/src/lib/auth.ts b/site/src/lib/auth.ts
index 7b54fdd0..c47e5774 100644
--- a/site/src/lib/auth.ts
+++ b/site/src/lib/auth.ts
@@ -55,6 +55,9 @@ export const auth = betterAuth({
google: {
clientId: process.env.GOOGLE_CLIENT_ID ?? "",
clientSecret: process.env.GOOGLE_CLIENT_SECRET ?? "",
+ // Always show Google's account chooser: without this, a browser with one
+ // signed-in Google session silently reuses the last-used account.
+ prompt: "select_account",
},
},
plugins: [