@edicon thnks work like charm... ...
can u tell me how to send reset password email...
And beware that this.af.auth.getAuth() is marked as deprecated and may be removed in a future release. So at this point, it is probably safest to use the Firebase JavaScript 3.x SDK directly for both of these use cases.
@Splaktar hey am using this... is it right way or use the the Firebase JavaScript 3.x SDK
this.af.auth.subscribe(data => {
if(data)
data.auth.sendverificationemail(data.auth.email);
)
Use the JS SDK for now. We plan on wrapping those functions later.
Please, can anyone tell me how to send reset password email? Thank you.
@jlsantos
Use the regular SDK
var auth = firebase.auth();
var emailAddress = "[email protected]";
auth.sendPasswordResetEmail(emailAddress).then(function() {
// Email sent.
}, function(error) {
// An error happened.
});
https://firebase.google.com/docs/auth/web/manage-users#send_a_password_reset_email
Thank you @davideast!
Most helpful comment
@jlsantos
Use the regular SDK
https://firebase.google.com/docs/auth/web/manage-users#send_a_password_reset_email