Last active
June 13, 2019 08:20
Ionic 4 Firebase email auth - Update email
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
updateEmail() { | |
user.updateEmail(this.email) | |
.then(() => { | |
this.email = ''; | |
this.presentToast('Email updated', false, 'bottom', 1000); | |
this.error = ''; | |
}) | |
.catch(err => { | |
console.log(` failed ${err}`); | |
this.error = err.message; | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment