© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
11 replies
Cheqo

Magic links only work only if user exists?

Hi, I am trying to implement sign in with OTP using this:
  const handleOtpVerify = async () => {
    const { data, error } = await supabaseClient.auth.verifyOtp({
      email,
      token: otp,
      type: 'magiclink'
    });
  const handleOtpVerify = async () => {
    const { data, error } = await supabaseClient.auth.verifyOtp({
      email,
      token: otp,
      type: 'magiclink'
    });

It works perfectly with existing users, however, if user doesn't exist he will receive confirm your signup email(see the screenshot)?

Why?

Does that mean that I need to have 2 UI screens/pages - one for Create account other for Sign in with email?

Is it possible to handle this logic somehow with one email input field?
Screenshot_2022-10-31_at_21.56.06.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

how to check if user exists only with Google OAuth?
SupabaseSSupabase / help-and-questions
4y ago
Magic Links and OTP
SupabaseSSupabase / help-and-questions
4w ago
Issues with Magic Links
SupabaseSSupabase / help-and-questions
4y ago
Magic Email Links and CDN
SupabaseSSupabase / help-and-questions
4y ago