HTTP Auth hooks otp verification expiry
I'm currently encountering an issue with the OTP verification process in my application using Supabase. Despite the OTP being sent and verified within the expected time frame, I'm consistently receiving an
Flutter clinet Error Message:
What i have done is:
phone: phone,
otp: otp
):
otp_expired error. Below are the details of the problem:Flutter clinet Error Message:
What i have done is:
- I successfully generated an OTP using Supabase's phone authentication qith HTTP auth hooks.
- The OTP is sent to the user's phone and is typically received within seconds.
- The user attempts to verify the OTP immediately after receiving it.
- Despite this, the OTP verification fails with the
otp_expirederror.
- Expected output:The OTP should be valid and verified successfully within the standard expiry time (typically 2 minutes).
- Flutter clinet Code Snippet:Below is a snippet of the code used for OTP```Flutter
phone: phone,
otp: otp
):
``
- debugging steps:
1. Verified that the OTP is being sent and received correctly.
2. Ensured the OTP is being submitted well within the expiry time.
3. Reviewed the server's system time to ensure there are no discrepancies causing premature expiration.
4. Attempted manual verification by checking the OTP and expiry time directly from the database.
Could you please help me understand why this otp_expired` error is occurring? Is there something i am missing to configure for time expiry?