Phone provider with SMS sending hook always raises errors

I implemented the Send SMS Hook for the regional sms providers.

In our Fullter app, the following steps to sign in with OTP and resend OTP always raise errors:

  1. The first time, call signInWithOtp to request an SMS OTP, it works successfully.
  2. Verify OTP with verifyOTP(phone, token, type: OtpType.sms); always return an error message: Token has expired or is invalid, statusCode: 403, errorCode: otp_expired).
  3. Try to resend OTP with signInWithOtp again.
  4. Repeating the verification in step 2 results in the same error.
Can you help to solve this issue? Or is this the bug of supabase auth?
Was this page helpful?