fix: use window.location.origin for Google callback URL and remove redundant whitespace in auth config

This commit is contained in:
Jose Selesan
2026-04-20 13:37:25 -03:00
parent 4e327b7318
commit a5e39c94c5
2 changed files with 1 additions and 2 deletions

View File

@@ -23,7 +23,6 @@ export const auth = betterAuth({
clientSecret: process.env.GOOGLE_CLIENT_SECRET!,
},
},
trustedOrigins: [
process.env.APP_BASE_URL ?? 'http://localhost:5173',
process.env.BETTER_AUTH_URL ?? 'http://localhost:3000',