Prompt

I’m getting redirect_uri_mismatch on Google login

Technology / Identity & Access1 observationLast seen Oct 6, 2026

Latest observation

Oct 6, 2026OpenAI APIWeb search: off

redirect_uri_mismatch means the redirect URI your app is sending to Google does not exactly match one of the URIs configured in your Google Cloud OAuth client.

What to check

1) Compare the exact redirect URI

Look at the URI your app sends in the OAuth request, for example:

  • http://localhost:3000/api/auth/callback/google
  • https://example.com/auth/google/callback

It must match exactly in Google Cloud Console:

  • same http vs https
  • same domain
  • same port
  • same path
  • trailing slash matters
  • no extra query params

2) Add it in Google Cloud Console

Go to:

Google Cloud Console → APIs & Services → Credentials → OAuth 2.0 Client IDs

Then under your OAuth client, add the redirect URI in:

Authorized redirect URIs

3) Make sure you’re editing the right OAuth client

If you have multiple OAuth client IDs, confirm the app is using the same client ID that you updated.

4) Check your app/framework config

Common framework defaults:

  • NextAuth/Auth.js:
    http://localhost:3000/api/auth/callback/google
  • Passport.js:
    depends on your callback route
  • Firebase/Auth UI:
    often uses project-specific callback URLs

5) Watch out for environment differences

If it works locally but not in production, add both:

  • local callback URL
  • production callback URL

Example

If your app uses:

http://localhost:3000/auth/google/callback

then Google Cloud must contain exactly that URI, not:

http://localhost:3000/auth/google/callback/
https://localhost:3000/auth/google/callback

If you want, I can help you fix it quickly

Send me:

  1. the redirect URI your app is using
  2. the framework/library you’re using
  3. the redirect URIs currently listed in Google Cloud

and I’ll tell you exactly what to change.

Observation history

How did Obsurfable measure this prompt?

Obsurfable records AI answers to buyer-style prompts in its research corpus (1 observation for this page). Metrics are distributions over observations, not a single static ranking.

Which AI systems does Obsurfable collect answers from?

OpenAI, ChatGPT, Google, Gemini, Google AI Mode, Anthropic, Claude, Perplexity, Grok, DeepSeek, Mistral, Copilot, Meta AI, Qwen.

How can brands improve their AEO?

Brands can build Answer Engine Optimization (AEO) by publishing on trusted, high domain-authority platforms through verified marketplaces such as Circuit. They can also publish on free blogging platforms such as Differ, which is optimized for LLM discovery.

Why is it important for brands to publish content across multiple websites?

Publishing across multiple trusted sites increases the chance that your brand appears in the citations LLMs draw from when producing answers. Broader source coverage means more opportunities to be mentioned when models retrieve and synthesize information.

Want this interpreted for your brand?

Explorer is the free public corpus. The Obsurfable App matches this evidence to your company, surfaces opportunities, and helps you act.