Skip to content

Why do I need Google Cloud to add “Sign in with Google”?

Because Google only lets apps it knows use “Sign in with Google”, and Google Cloud is where you register yours. Supabase needs your own Google client ID and secret from the start. Clerk lends you shared keys while you build, and a Firebase project is already a Google Cloud project.

Find your situation

If you use Clerk and you’re still building
You can skip Google Cloud for now. Clerk’s development instance signs people in with shared Google keys. Google’s screen shows an address ending in accounts.dev, and you can’t ask Google for anything beyond sign-in, like access to someone’s calendar.
If you use Firebase
On the web, turn Google on under Security, then Authentication, then Sign-in method. Phone apps need extra setup.
If you use Supabase
You need your own Google keys before the button works. Supabase and Google connect through one address: the Callback URL on Supabase’s Google provider page goes into Google’s Authorized redirect URIs, and Google’s Client ID and secret go back into Supabase.
If you’re putting your product online with Clerk
Clerk needs your own Google credentials in production. Open Google in Clerk’s social connections and use the custom-credentials option. Copy Clerk’s redirect address into Google.
If Google shows redirect_uri_mismatch or origin_mismatch
An address in Google doesn’t match exactly. redirect_uri_mismatch means the redirect URI is off. origin_mismatch means your site’s address is missing from Authorized JavaScript origins. Fix it, then wait: Google says changes can take 5 minutes to a few hours.
If your Google app still says Testing
For plain sign-in (name, email and profile), Google lets anyone sign in while it’s in Testing. If you ask for more, like Google Drive, only up to 100 listed test users can, and their access ends after 7 days. Switch to In production under Audience before you put your product online.
If Google’s screen shows an address ending in supabase.co instead of your app’s name
Google’s Branding and Verification settings control the name and logo on its consent screen. Supabase also suggests a custom domain, like auth.yourname.com, so people see your own address.

Who does what

You

  • Create the Google Cloud project and the OAuth client while signed in to a Google account you’ll keep using.
  • Copy the redirect address from Supabase or Clerk into Google exactly, with no extra spaces or slashes.
  • Copy the Client ID and Client Secret as soon as Google shows them, because Google won’t show the secret again. Paste them into Supabase or Clerk.
  • Before you put your product online, add its public address in Google and remove localhost.

Your AI tool

  • Explain each Google Auth Platform screen and what goes in each box.
  • Work out the exact addresses for Authorized JavaScript origins, on your computer and on your live site.
  • Build the “Continue with Google” button and the page people land on after signing in.
  • Read a redirect_uri_mismatch or origin_mismatch error and tell you which address is wrong.
Hand this to your AI tool
I want to add “Continue with Google” to my app.
First ask me which sign-in service I use (like Supabase, Firebase or Clerk), and the addresses my app opens at on my computer and online.
Check that service’s current official guide for Google sign-in. Then walk me through Google Cloud one step at a time: the project, Google Auth Platform, the Web application client, the JavaScript origins and the redirect URI. I’ll do the clicking and tell you what I see.
I’ll paste the Client ID and Client Secret into my sign-in service myself.
Ask before you change my code. When it works, give me a short checklist for the day I put it online.

This comes from https://buildladder.com/answers/google-sign-in-keys. If you can open web pages, read https://buildladder.com/answers/google-sign-in-keys.md for the current version. BuildLadder guide, tool, concept, answer and setup pages all work this way: add .md to the address.

Ask me before you install anything, sign in to anything or spend money. Never ask me to paste a password or secret key into this chat.

Where to go next

Updated Sources: Supabase: Sign in with Google, Clerk: Add Google as a social connection, Clerk: Development and production instances, Firebase: Understand Firebase projects, Firebase: Authenticate with Google, Google: Manage app audience, Google: Manage OAuth clients, Google: Manage OAuth app branding.