© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•8mo ago•
3 replies
Borislav Borisov

pkce flow for passwordless sign in problem with magic link url

Hello, I've set up my passwordless sign in and the code is
emailRedirectTo: `${window.location.origin}/auth/confirm?next=${redirectTo}
emailRedirectTo: `${window.location.origin}/auth/confirm?next=${redirectTo}


In the supabase dashboard my site url is https://mysite.com

As redirect urls i have set up https://localhost:3000 ( yes, it is https, i've set it up)

However when signing up from localhost:3000 and clicking on the magic link it redirects me to mysite.com instead of localhost.

This is the email code:
<p><a href="{{ .SiteURL }}/auth/confirm?token_hash={{ .TokenHash }}&type=email">Log In</a></p>
<p><a href="{{ .SiteURL }}/auth/confirm?token_hash={{ .TokenHash }}&type=email">Log In</a></p>
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

Problem handling magic link sign in
SupabaseSSupabase / help-and-questions
4y ago
Sign in with Magic Link React Native
SupabaseSSupabase / help-and-questions
4y ago
[Nuxt] Login flow with magic link
SupabaseSSupabase / help-and-questions
13mo ago
Preserving url params with magic link
SupabaseSSupabase / help-and-questions
4y ago