From ccc509fac6cba2e9f8b1d40730f8146311c38b61 Mon Sep 17 00:00:00 2001 From: Michele Date: Sat, 31 Jan 2026 19:32:27 +0100 Subject: [PATCH] Fix Google OAuth redirect URL to include basePath Co-Authored-By: Claude Opus 4.5 --- src/components/auth/google-button.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/auth/google-button.tsx b/src/components/auth/google-button.tsx index 59c2e03..d1e7282 100644 --- a/src/components/auth/google-button.tsx +++ b/src/components/auth/google-button.tsx @@ -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',