Fix Google OAuth redirect URL to include basePath

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Michele
2026-01-31 19:32:27 +01:00
parent 1f6e0d8356
commit ccc509fac6

View File

@@ -38,7 +38,7 @@ export function GoogleSignInButton() {
const { error } = await supabase.auth.signInWithOAuth({
provider: 'google',
options: {
redirectTo: `${window.location.origin}/auth/callback`,
redirectTo: `${window.location.origin}/leopost/auth/callback/`,
queryParams: {
access_type: 'offline',
prompt: 'consent',