© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•15mo ago•
3 replies
rai

Anyone experiencing expired OTP errors recently?

Lately like 20% of my users can't sign in with OTP via email randomly. Sometimes they can other times not. Even if they click on the email link to sign in after a couple of seconds, supabase can simply say that the OTP is expired.

The most annoying thing is that every time I try it myself, I don't get any errors. My verify code is really simple:
await supabase.auth.verifyOtp({
      type,
      token_hash: tokenHash
    })
await supabase.auth.verifyOtp({
      type,
      token_hash: tokenHash
    })

Where type is always
email
email
. And the way I send OTPs is:
await supabase.auth.signInWithOtp({
      email: body.email.trim(),
      options: {
        shouldCreateUser: false,
        captchaToken: body.captchaToken,
      }
    })
await supabase.auth.signInWithOtp({
      email: body.email.trim(),
      options: {
        shouldCreateUser: false,
        captchaToken: body.captchaToken,
      }
    })

Anyone here has experienced the same thing or has any insight into possible solutions?
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

OTP Expired or Invalid
SupabaseSSupabase / help-and-questions
17mo ago
Getting otp_expired error when running verifyOtp
SupabaseSSupabase / help-and-questions
3mo ago
Was email otp expiration limit recently shortened?
SupabaseSSupabase / help-and-questions
7mo ago
/otp endpoints returning 5xx errors
SupabaseSSupabase / help-and-questions
4w ago