© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•6mo ago•
5 replies
Mansour

Password Reset redirectTo Parameter Not Working

Hi! I'm having an issue with password reset emails where the redirectTo parameter isn't being respected.
What I'm doing:
requestBody := map[string]string{
    "email":      "user@example.com",
    "redirectTo": "http://localhost:5173/auth/callback",
}
requestBody := map[string]string{
    "email":      "user@example.com",
    "redirectTo": "http://localhost:5173/auth/callback",
}


What I expect:
Email link should redirect to http://localhost:5173/auth/callback

What I get:
Email link only redirects to http://localhost:5173 (missing the /auth/callback path)

The email URL looks like:
https://myproject.supabase.co/auth/v1/verify?token=...&type=recovery&redirect_to=http://localhost:5173

What I've tried:
Supabase Go community package (https://github.com/supabase-community/supabase-go) - doesn't support redirectTo parameter
Direct HTTP calls to /auth/v1/recover endpoint - still not working

My settings:
Site URL: http://localhost:5173
Redirect URLs: includes http://localhost:5173/auth/callback
Email template uses {{ .ConfirmationURL }}

Questions:
Is redirectTo the correct parameter name for the /auth/v1/recover endpoint?
Could my Site URL setting be overriding the redirectTo parameter?
Any other configuration I'm missing?

Thanks
GitHub
GitHub - supabase-community/supabase-go: A Go Client library for Su...
A Go Client library for Supabase. Contribute to supabase-community/supabase-go development by creating an account on GitHub.
GitHub - supabase-community/supabase-go: A Go Client library for Su...
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
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Password reset redirectTo URL not including path component
SupabaseSSupabase / help-and-questions
4mo ago
Password reset not working on mobile
SupabaseSSupabase / help-and-questions
13mo ago
Reset Password flow confusion/not working
SupabaseSSupabase / help-and-questions
3y ago
Reset password link not working as expected
SupabaseSSupabase / help-and-questions
4mo ago