LogicTrail
  • Trails
  • Check my app
  • Pricing
  • Sign in
  1. Trails
  2. /
  3. Launch day
  4. · 4 minutes · Pro

Sign in with Google: Error 400

'Sign in with Google' works perfectly on your laptop. On your real domain, users see 'Error 400: redirect_uri_mismatch'.

This answers: How do I fix Google redirect_uri_mismatch? No coding needed. 2 quick decisions.

  • Who is signed in
  • How a request travels

Checking your access…

How do I fix Google redirect_uri_mismatch?

Add the exact your app uses in production to the allowed redirect URIs in Google Cloud Console and in your auth provider. It must match exactly, including https, domain, path and trailing slash. Google does not allow wildcards, so give each environment that needs sign-in a stable address.

Trail of the bug
  1. Browser
  2. Google
  3. Auth service

Breaks at Google: Callback URL not registered

Why AI tools write this bug

Sign-in is usually set up and tested on , and the production callback is never added to the provider's settings.

How to fix it

  1. Read the shown on Google's error page.

3 more steps, and a prompt that checks your own app for this bug. Part of Pro.

Unlock

Common questions

Can I use a wildcard redirect URI with Google?
No. Google requires exact URLs, which prevents attackers redirecting login codes to their own sites.

Related scenarios

  • Invoice 105Free · 4 min
  • Confirm email, reach localhostPro · 4 min
  • The save that saved nothingFree · 4 min

More on this trail

Launch day: Emails that never arrive, sign-in errors, timeouts, stale prices and connection limits.

Want someone to look?

We check AI-built apps for this and three other common leaks, in plain English.

Check my app
Sign in

Sign in to walk this one

2 decisions, about 4 minutes, and a prompt to check your own app for the same problem.

Sign in No password. We email you a link.

How to fix it

  1. Read the shown on Google's error page.

3 more steps, and a prompt that checks your own app for this bug. Part of Pro.

Unlock