Prompt
google login redirect uri
Latest observation
Oct 6, 2026
OpenAI APIWeb search: off
Google OAuth redirect URI is the URL Google sends the user back to after login, and it must exactly match one of the URIs registered in your Google Cloud OAuth client.
Example
If your app callback route is:
https://example.com/auth/google/callback
then that exact URL should be added in:
Google Cloud Console → APIs & Services → Credentials → OAuth 2.0 Client IDs → Authorized redirect URIs
Common cases
- Local dev:
http://localhost:3000/auth/google/callback - Production:
https://yourdomain.com/auth/google/callback
Important rules
- Must match scheme (
httpvshttps) - Must match domain
- Must match port
- Must match path
- Usually no extra query parameters
If you use Google Identity Services / OAuth libraries
Your app’s redirect endpoint is typically something like:
/auth/google/callback/api/auth/callback/google/oauth2/callback
If you want, I can help you find the exact redirect URI for your stack:
- Node/Express
- Next.js / NextAuth
- Django
- Laravel
- Flutter / mobile
- React SPA