Blog ·

Google login says "Unsupported provider: provider is not enabled"? Turn it on in Supabase

You built your app with Lovable, Bolt, Cursor or Replit, and it came with a "Sign in with Google" button. You press it and, instead of Google's account picker, the browser shows a short line of text like this:

{"code":400,"error_code":"validation_failed","msg":"Unsupported provider: provider is not enabled"}

The address bar shows your Supabase project, something like https://<project-ref>.supabase.co/auth/v1/authorize?provider=google. Nobody gets as far as Google, so nobody can sign up or log in that way. The same message can appear for GitHub, LinkedIn, X or any other social login.

The short answer

Supabase Auth refused to start the sign-in because, in the project that received the request, that provider is switched off. In Supabase's own code, the message after "Unsupported provider:" comes from a check that runs before anyone is sent to Google:

  • provider is not enabled: the provider is turned off.
  • missing OAuth client ID: it is on, but no Client ID is saved.
  • missing OAuth secret: it is on, but the Client Secret is empty.

So the fix is to switch the provider on, with a Client ID and Client Secret, in the same Supabase project your live app talks to.

Check that this is your problem

  1. Press the button on your live site in a private window and read the full message. The words after "Unsupported provider:" tell you which of the three cases above you have.
  2. Copy the part of the address before .supabase.co. That is the project reference of the project that answered.
  3. In the Supabase dashboard, open Authentication, then Sign In / Providers, and expand Google (or the provider you use). The Callback URL shown there looks like https://<project-ref>.supabase.co/auth/v1/callback. If its project reference is different from the one in step 2, your app talks to another project, for example one a builder created for you or a copy made for testing. That other project is where the provider has to be switched on.
  4. If the references match, look at whether the provider is enabled and whether a Client ID and Client Secret are filled in.

Fix it

Get a Client ID and secret from Google

Supabase's Google guide says to create the credentials in the Clients section of the Google Auth Platform console:

  1. Create a new OAuth client ID and choose Web application.
  2. Under Authorized JavaScript origins, add your app's address, such as https://yourapp.com.
  3. Under Authorized redirect URIs, add the Callback URL you copied from the Supabase Google provider page.
  4. Select Create and save the Client ID and Client Secret.

Google's help page on OAuth clients says you can only view and download the full client secret once, when it is created. If you no longer have it, Google lets you select Add Secret on the client's details page to make a new one.

Switch the provider on in Supabase

Back in Authentication, then Sign In / Providers, open the provider, turn it on, paste the Client ID and Client Secret, and select Save. The secret belongs in the Supabase dashboard only. It never needs to go in your app's code or in a prompt.

Then press your button again in a fresh private window. If Google now complains with redirect_uri_mismatch, the Callback URL is missing from your OAuth client's Authorized redirect URIs or does not match it exactly.

Using GitHub, LinkedIn or X?

The same check applies, but also make sure your code asks for the provider name Supabase expects. In Supabase's docs, the current LinkedIn provider is called LinkedIn (OIDC) and the code uses provider: 'linkedin_oidc'. The X / Twitter (OAuth 2.0) provider uses provider: 'x', while twitter is the older OAuth 1.0a provider, which Supabase says will be deprecated. If you switched on one in the dashboard and your code asks for the other, you get this error even though the dashboard says enabled.

Testing on your own computer with the Supabase CLI?

A local Supabase uses its own settings, not your hosted project's dashboard. Supabase's docs say to add the provider to supabase/config.toml with enabled = true, a client_id and a secret loaded from an environment variable, then run supabase stop and supabase start so the change takes effect.

On Lovable

If your app uses Lovable's built-in backend, Lovable's docs say Google sign-in is set up under More, then Users, then Settings, then Google. Its troubleshooting steps for sign-in that does not work start with confirming that Google sign-in is enabled there and, if you use your own credentials, checking the Client ID and Client secret. With Managed by Lovable, Lovable says it handles the OAuth client and credentials for you. If your Lovable app is connected to your own Supabase project instead, follow the Supabase steps above in that project.

Still failing with everything switched on?

If the project reference matches, the provider shows as enabled with both values saved, and the provider name in your code is right, the message is coming from Supabase's side of the setup rather than your app. Contact Supabase support with the project reference and the time you tried, rather than changing your app's code.

Test like a new visitor

Open your live site in a fresh private window and sign in with a Google account you have never used on the app. Do it on every address people use, such as yourdomain.com and www.yourdomain.com, and check that you land back on your live site signed in, not on a preview address.

Paste this into your AI tool

> When I press Sign in with Google in my live app, I get "Unsupported provider: provider is not enabled" from Supabase. Please find every place my code calls supabase.auth.signInWithOAuth and tell me the exact provider value each one uses. Also find where the Supabase URL comes from (for example VITE_SUPABASE_URL or NEXT_PUBLIC_SUPABASE_URL) and tell me which project reference the live build uses. Do not add any client secret to the code and do not change my Supabase settings yourself; give me a short list of what to check in the Supabase dashboard.

Catch it before your users do

This one often hides because the owner signs in with email and password and never presses the Google button on the live site. Scheduled testing from FlowCanary is launching by 30 November 2026. Once it is live, it will test the flows a new visitor can do in your app, such as sign-up and checkout, in a real browser on a schedule, with logged-in flows on Pro, and tell you in plain English when one breaks, with a fix prompt for Lovable, Bolt, Cursor or Replit. Until then, the free check works today: paste your live URL and it opens the page in a real browser and reports JavaScript errors, failed requests and blank pages.

Sources

Run the free checker