#37 most commonauthLovableBolt.newCursorReplitv0Windsurf

Google sign-in: Error 400 redirect_uri_mismatch

Error 400: redirect_uri_mismatch. You can't sign in to this app because it doesn't comply with Google's OAuth 2.0 policy.

Got a slightly different error? Paste the exact message and get a fix prompt tailored to it.

Paste your error →

What it means

Google only sends users back to addresses you've pre-approved. The address your app (or Supabase/Firebase) uses isn't on Google's approved list.

How to fix it: paste this prompt into your AI builder

Fix prompt for Lovable, Bolt, Cursor, Replit, v0, Windsurf
Google sign-in fails with redirect_uri_mismatch. Tell me the exact redirect URI my auth provider uses (for Supabase: https://<project-ref>.supabase.co/auth/v1/callback; for Firebase: https://<project>.firebaseapp.com/__/auth/handler) and the JavaScript origins I must add in Google Cloud Console, Credentials, OAuth client. Don't change app code unless the code passes a wrong redirect URL.

If the AI can't fix it: manual steps

  1. Google Cloud Console, APIs & Services, Credentials, your OAuth client: add the URI under Authorized redirect URIs exactly (watch for trailing slashes).

Where this happens

Seen in these AI app builders and editors:

LovableBolt.newCursorReplitv0Windsurf

Sources

Related auth errors

Still stuck? Paste your full error and UnstuckMyVibe will match it and hand you the exact fix prompt.

Fix my error →