firebase’s cli reset password code example

Example 1: reset password firebase auth

var auth = firebase.auth();
var emailAddress = "[email protected]";
auth.sendPasswordResetEmail(emailAddress)
.then(function() {  
// Email sent.
})
.catch(function(error) {
// An error happened.
});

Example 2: firebase reset password javascript

To implement a forgot password button, you have to call: firebase.auth().sendPasswordResetEmail('[email protected]')

Check the documentation for more details: https://firebase.google.com/docs/reference/js/firebase.auth.Auth#sendPasswordResetEmail

Tags:

Misc Example