- 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
Visit: https://supabase.com/dashboard/project/kvxasjbaxepcafekuhoo
Navigate to Authentication → Providers
2. Enable GitHub OAuth
Find GitHub in the providers list
Toggle it ON
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**
Paste the Client ID and Client Secret into Supabase GitHub provider settings
Click Save
3. Enable Google OAuth
Find Google in the providers list
Toggle it ON
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**
Paste the Client ID and Client Secret into Supabase Google provider settings
Click Save
4. Verify Redirect URLs
Make sure these URLs are in your Supabase Authentication → URL 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:
Visit
/personalon your siteClick "Sign in with GitHub" or "Sign in with Google"
You should be redirected to the OAuth provider for authentication
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/callbackis in your Supabase redirect URLs
Top comments (0)