© 2026 Hedgehog Software, LLC

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

How to avoid creating a new account with magic links?

Magic links are working great for logins but I don't want them to work for accounts that doesn't exist. I tried this code but it still creates an account? Any idea ?

 const { error } = await supabaseClient.auth.signInWithOtp({
  email,
  options: {
    shouldCreateUser: false,
  },
});
 const { error } = await supabaseClient.auth.signInWithOtp({
  email,
  options: {
    shouldCreateUser: false,
  },
});
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

Issues with Magic Links
SupabaseSSupabase / help-and-questions
4y ago
Avoid creating new accounts with Google Provider
SupabaseSSupabase / help-and-questions
4y ago
Magic Links and OTP
SupabaseSSupabase / help-and-questions
4w ago
Magic Email Links and CDN
SupabaseSSupabase / help-and-questions
4y ago