Hello ,
I wanna know how to create resend OTP function button after a button click, can someone guide me on that
Thank you
Hello ,
I wanna know how to create resend OTP function button after a button click, can someone guide me on that
Thank you
You need to provide more detail, this has nothing really to do with React and absolutely everything to do with the authentication provider being used
As it is, you store the email in state from the first stage and then just run the first stage again if they hit the resend button. Or you just let them go back to the email entry if they think they haven’t received the OTP.
You don’t really need a resend button because there’s a 99% chance it’s user error, you don’t want them spamming the system, and the provider will hopefully have a time delay on requests for a new OTP anyway (+ hopefully exponential backoff).
So the latter of the two options (go back) is better.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.