1var auth = firebase.auth();
2var emailAddress = "user@example.com";
3auth.sendPasswordResetEmail(emailAddress)
4.then(function() {
5// Email sent.
6})
7.catch(function(error) {
8// An error happened.
9});
1To implement a forgot password button, you have to call: firebase.auth().sendPasswordResetEmail('user@example.com')
2
3Check the documentation for more details: https://firebase.google.com/docs/reference/js/firebase.auth.Auth#sendPasswordResetEmail