Fix Google login redirect_uri_mismatch in Lovable and Bolt apps
Google sign-in works in preview but shows Error 400: redirect_uri_mismatch the moment users try to authenticate on your live domain. Here is how to configure Google Cloud Console.
Decoding Error 400: redirect_uri_mismatch
Google OAuth requires exact string matching between the callback URL your app sends and the authorized redirect URIs registered in your Google Cloud Console project. Even a missing trailing slash or protocol mismatch (http vs https) will trigger a 400 rejection.
The Correct Supabase Callback URL
When using Supabase Auth with Google OAuth, the user actually redirects through Supabase before landing back on your app:
https://<your-project-id>.supabase.co/auth/v1/callback
Step-by-Step Fix in Google Cloud Console
- Navigate to Google Cloud Console -> APIs & Services -> Credentials.
- Open your Web Client OAuth 2.0 Client ID.
- Under Authorized redirect URIs, add your Supabase project callback.
- Under Authorized JavaScript origins, add both your Supabase project domain and your production domain.
- Save and allow up to 5 minutes for Google's edge cache to propagate.
Google, GitHub, or Apple OAuth still failing?
We verify your OAuth credentials, callback handlers, and session synchronization end-to-end.
Get the Login & Auth Fix
MERN developer in Pakistan fixing React, Node.js, Supabase, and Stripe apps for founders worldwide. About Safdar Rehman
Login & Auth Fix — $149
Fixed price, separate GitHub PR, and Loom walkthrough in 24–48 hours.
See Login & Auth details