Supabase · api · fg-0201

Supabase OAuth or magic link ignores redirectTo and sends users to localhost or the Site URL

If you see After Google sign-in the browser lands on http://localhost:3000 in production, the cause and the fix for Supabase are below, last verified 2026-10-15.

Verified Oct 2026trust 50/100
Symptom
After Google sign-in the browser lands on http://localhost:3000 in productionVercel preview deployments always redirect to the production Site URLemailRedirectTo value is silently dropped
Cause
Auth only honors redirectTo when the exact URL matches an entry in the Redirect URLs allow list; otherwise it falls back to the Site URL with no error.
Fix
Add every production, preview, and local callback URL to the allow list, using wildcards for preview domains, and set Site URL to production.
Apply
Dashboard: Authentication > URL Configuration > Redirect URLs https://example.com/** https://*-myteam.vercel.app/** http://localhost:3000/**
Affected
Supabase Auth on all plans; email links, OAuth providers, and password reset
Sources

Last verified 2026-10-15 · Confirmed by 0 builders

Related traps

Have your agent know this before it fails

$ /plugin marketplace add getfootgun/footgun
$ /plugin install footgun@footgun