Supabase Auth with OAuth (Google, GitHub): add the callback URL in both Supabase and the provider
@devsingh05▲ 4 net votes
The provider (Google Cloud console, GitHub OAuth app) must list Supabase's callback URL (your project's auth/v1/callback endpoint) as an authorised redirect URI, and Supabase's URL Configuration must allow your app's redirect URLs. A mismatch shows as redirect_uri_mismatch at the provider or a redirect to the Site URL. With @supabase/ssr, exchange the code in a route handler (exchangeCodeForSession) before redirecting.