DEV Community

Dnyaneshwar Vitthal Shekade
Dnyaneshwar Vitthal Shekade

Posted on • Originally published at dnyan.vercel.app

supabase checkange

  • Supabase OAuth Setup Guide

Error: "Unsupported provider: provider is not enabled"

This error means the OAuth provider (GitHub or Google) needs to be enabled in your Supabase project.

Steps to Enable OAuth Providers

1. Go to Supabase Dashboard

2. Enable GitHub OAuth

  1. Find GitHub in the providers list

  2. Toggle it ON

  3. You'll need to create a GitHub OAuth App:

-   Go to: [https://github.com/settings/developers](https://github.com/settings/developers)

-   Click **New OAuth App**

-   Fill in:

    -   **Application name**: `dnyan.cloud` (or your preferred name)

    -   **Homepage URL**: `https://dnyan.vercel.app`

    -   **Authorization callback URL**: `https://kvxasjbaxepcafekuhoo.supabase.co/auth/v1/callback`

-   Click **Register application**

-   Copy the **Client ID** and **Client Secret**
Enter fullscreen mode Exit fullscreen mode
  1. Paste the Client ID and Client Secret into Supabase GitHub provider settings

  2. Click Save

3. Enable Google OAuth

  1. Find Google in the providers list

  2. Toggle it ON

  3. You'll need to create a Google OAuth App:

-   Go to: [https://console.cloud.google.com/apis/credentials](https://console.cloud.google.com/apis/credentials)

-   Click **Create Credentials** → **OAuth client ID**

-   Select **Web application**

-   Fill in:

    -   **Name**: `dnyan.cloud` (or your preferred name)

    -   **Authorized redirect URIs**:

        -   `https://kvxasjbaxepcafekuhoo.supabase.co/auth/v1/callback`

-   Click **Create**

-   Copy the **Client ID** and **Client Secret**
Enter fullscreen mode Exit fullscreen mode
  1. Paste the Client ID and Client Secret into Supabase Google provider settings

  2. Click Save

4. Verify Redirect URLs

Make sure these URLs are in your Supabase AuthenticationURL Configuration:

  • Site URL: https://dnyan.vercel.app

  • Redirect URLs:

    • https://dnyan.vercel.app/auth/callback
    • https://dnyan.vercel.app/*
    • http://localhost:3000/auth/callback (for local development)

5. Test the Login

After enabling the providers:

  1. Visit /personal on your site

  2. Click "Sign in with GitHub" or "Sign in with Google"

  3. You should be redirected to the OAuth provider for authentication

  4. After authorizing, you'll be redirected back to /personal

Troubleshooting

  • "Invalid redirect URI": Make sure the redirect URI in your OAuth app matches exactly: https://kvxasjbaxepcafekuhoo.supabase.co/auth/v1/callback

  • "Provider not enabled": Double-check that the provider is toggled ON in Supabase Dashboard

  • Local development: Make sure http://localhost:3000/auth/callback is in your Supabase redirect URLs

Top comments (0)