Invalidate OTP after timeout using firebase phone authentication in flutter

1k views Asked by At

I am using firebase phone authentication in my flutter application and I want to send new OTP after timeout (say 60 seconds), instead of sending same duplicate OTP again on resend request.

The timeout parameter of _firebaseAuth.verifyPhoneNumber() corresponds to SMS auto-retrieval timeout and not the OTP expiration time. How can I workaround with that?

1

There are 1 answers

0
Skander Hamdi On

The timeout parameter is for OTP expiration time