© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
3 replies
ak4zh

signInWithOtp always redirects to localhost3000

I have configured Site URL to http://localhost:5173 and Redirect urls to http://localhost:5173/**

When I call signInWithOtp the email always has
localhost:3000
localhost:3000
instead
const { error } = await supabaseClient.auth.signInWithOtp({
    email,
    options: {
        emailRedirectTo: `${url.origin}/logging-in`
    }
});
const { error } = await supabaseClient.auth.signInWithOtp({
    email,
    options: {
        emailRedirectTo: `${url.origin}/logging-in`
    }
});
image.png
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

signinwithotp
SupabaseSSupabase / help-and-questions
3y ago
OAuth always redirects to localhost Supabase bug
SupabaseSSupabase / help-and-questions
4mo ago
Is signInWithOtp() broken?
SupabaseSSupabase / help-and-questions
2mo ago
How do i open the studio as in localhost as it redirects from localhost3000 to app.supabase.com
SupabaseSSupabase / help-and-questions
4y ago