© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4mo ago•
2 replies
mth_gama

OAuth always redirects to localhost Supabase bug

Hey everyone 👋

I’m having a strange issue with Supabase Auth (Google OAuth).
Even after updating the Site URL to my production domain (https://juskit.ai) and forcing redirectTo in my frontend,
the final callback still redirects to https://localhost:3000/#access_token=....

I've already tried:
Updating the Site URL and Redirect URLs in the dashboard
Forcing redirectTo: 'https://juskit.ai/auth/callback'
Pausing and resuming the project
Clearing all sessions and localStorage
Reconfiguring the Google provider

Is it possible that GoTrue still holds an old cached SITE_URL value internally?
If so, how can I completely reset or refresh it (without cloning the whole project)?

Has anyone faced this before?
Jus Kit
O seu kit de ferramentas de IA para advogados e profissionais do Direito.
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Hosted Supabase - Invite redirects to localhost
SupabaseSSupabase / help-and-questions
4y ago
Supabase Auth Self-hosted always redirects to https://localhost:3000 (Redirect + Email url)
SupabaseSSupabase / help-and-questions
4mo ago
login in prod redirects to localhost
SupabaseSSupabase / help-and-questions
5mo ago
signInWithOtp always redirects to localhost3000
SupabaseSSupabase / help-and-questions
4y ago