DEV Community

Cover image for How to implement Forgot Password feature in React Native with Firebase app

How to implement Forgot Password feature in React Native with Firebase app

Aman Mittal on December 12, 2019

In some of the previous posts, you built a React Native app using Firebase as the backend service provider for Email authentication and storing use...
Collapse
 
lylest profile image
wackyizzy

Firebase only send a link but you must provide that link Right and actually write code that will take care of that password update process I am asking how can you do that on the web how to take user new password and update it to the firebase doesn't it require authentication

Collapse
 
amanhimself profile image
Aman Mittal

Have you seen the later half of my post? I have provided screenshots that Firebase not only sends a link but also with the link a minimal UI interface to change the password as well as backend interface to change the password. I am referring to this: res.cloudinary.com/practicaldev/im...

The email to reset password is actually sent uniquely to the email id of a registered user. It is not available for anyone to access.

Collapse
 
lylest profile image
wackyizzy

Looks like I have changed the password reset email template and replaced it with my own link how can I get that link which have minimal UI

Thread Thread
 
amanhimself profile image
Aman Mittal

If you are replacing it with your link, please refer to Firebase docs about customizing or using the default UI when using Firebase.

Thread Thread
 
lylest profile image
wackyizzy

No I want to use the default one which have minimal UI how can I do that??

Thread Thread
 
amanhimself profile image
Aman Mittal

it is enabled by default. If you have changed the settings you might want to look at them again. Or search their docs.

Collapse
 
lylest profile image
wackyizzy

The password update send the email with the link to the user but how can you actually allow changes while user is outside the. App how will it know and alow user to change new password with the links sent

Collapse
 
amanhimself profile image
Aman Mittal

I am not sure I understand the first half of your comment.

  • "App how will it know and alow user to change new password with the links sent"

Firebase sends the user a link to change the password on the email. On clicking the email, the user can go through the process of setting up a new password. After the new password is set, the user can use that new credential to login the app. The new credential is saved in Firebase as soon as the user has set it. This is a common practice that apps/websites handle password resets. In this case, this is handle by the Firebase.