Home > Back-end >  How to reset password if the registration is on phone number from Firebase Flutter
How to reset password if the registration is on phone number from Firebase Flutter

Time:01-04

Hi all I have my flutter app under development I am using phone number with otp access for signup along with email and username but now I am confused how can I reset the password. With email and password auth it is super easy but with phone number its confusing. I tried searching over internet but didnt found anything I hope anyone from here could have done implemented this in their apps. If so then let me know how I can reset my password

CodePudding user response:

When a user signs in with phone authentication, there is no password to reset. The system sends them an OTP, and if that expires you can send another one. If you want them to re-sign in with their phone number, you can send them a new OTP with the same API as with which you sent the OTP the first time: verifyPhoneNumber.

If the user signed in with email password (too), you can send a password reset email through sendPasswordResetEmail.

  • Related