Ā© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•14mo ago•
6 replies
JC

Token has expired or is invalid

Hello! I launched a new Flutter app today and I have hundreds of users who are trying to sign up using verifyOtp, but they keep getting the error: "token has expired or is invalid". The weird thing is that I can't reproduce the error. Everything works great for me, and there are also several other users where it works fine. So I'm at a loss for what to try next. Here is the code I'm using to send a code to the user, who is signing up for the first time:

      final data = await Supabase.instance.client.auth.verifyOTP(
        email: widget.profileData['email'],
        token: _otpController.text,
        type: OtpType.email,
      );
      final data = await Supabase.instance.client.auth.verifyOTP(
        email: widget.profileData['email'],
        token: _otpController.text,
        type: OtpType.email,
      );


Like I said, this works fine for me every time I use it in the simulator and on the production app. I've even deleted my user record in the auth.users table to start fresh, but the verification works fine for me and I get right in.

Any help would be appreciated!
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

Token has expired or is invalid
SupabaseSSupabase / help-and-questions
5mo ago
Token has expired or is invalid" error
SupabaseSSupabase / help-and-questions
2mo ago
/verify | 403: Email link is invalid or has expired
SupabaseSSupabase / help-and-questions
5mo ago
OTP Expired or Invalid
SupabaseSSupabase / help-and-questions
17mo ago