konstantin_doncov
konstantin_doncov

Reputation: 2879

Password recovery using SMS with Firebase

I want to implement password recovery on Android using SMS to mobile phone using Firebase. But now I can find only password recovery using email(Send a password reset email). So, how can I implement this feature but using SMS and mobile phone number using Firebase? Or what workaround I can implement if there is no way to do it using default Firebase methods(preferably using some other Firebase methods)?

Upvotes: 2

Views: 1335

Answers (1)

Vns Aditya
Vns Aditya

Reputation: 445

This is only a bad workaround since we don't have a "Password recovery with SMS" in Firebase.

Step 1: Authenticate the user with Phone number. Step 2: Delete the user and save the UserId. Step 3: Create new user with same email Id. Step 4: This will generate a new user with different UserId. Replace the old UserId whereever stored with the new one.

Hope it works..!

Upvotes: 1

Related Questions