© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3y ago•
1 reply
Flushey

OAuth Redirect to multiple domains

I use supabase with Auth.
My website runs on multiple domains.
How can i redirect to the current page after login?

I also use the AuthUI:
<Auth
  {...}
  providers={["azure"]}
  redirectTo={url}
/>
<Auth
  {...}
  providers={["azure"]}
  redirectTo={url}
/>


My .env variables are set like this:
SITE_URL=https://my-page-one.com
ADDITIONAL_REDIRECT_URLS=https://my-page-two.com,https://localhost
SITE_URL=https://my-page-one.com
ADDITIONAL_REDIRECT_URLS=https://my-page-two.com,https://localhost


However the redirectTo only works for
https://my-page-one.com
https://my-page-one.com
.
On
https://localhost
https://localhost
it only works if the redirecTo has no additional path and redirects to the origin itself.


How can i redirect to a dynamically created URL?
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

google oauth redirect
SupabaseSSupabase / help-and-questions
4y ago
OAuth Page Redirect Issue
SupabaseSSupabase / help-and-questions
4y ago
URL Configuration for OAuth Redirect
SupabaseSSupabase / help-and-questions
3mo ago
Google oauth redirect is broken
SupabaseSSupabase / help-and-questions
6mo ago