FirebaseExtended / polymerfire

Polymer Web Components for Firebase
https://www.webcomponents.org/element/firebase/polymerfire
MIT License
459 stars 142 forks source link

Implement the email verification method for the regular JS SDK #252

Open aswerdlow935 opened 7 years ago

aswerdlow935 commented 7 years ago

One large thing that polymerfire is missing is the sendEmailVerification() from the vanilla JS SDK. Since firebase makes email verification through cloud functions difficult (no way to do it[that I know of] except doing it all custom), it would make sense to implement the sendEmailVerification method for polymerfire to make this process much much easier.

tjmonsi commented 7 years ago

@aswerdlow935 checking it this weekend. Thanks for the headsup

ianjimmychang commented 7 years ago

You can just call the sendEmailVerification method when you get back the response from createUserWithEmailAndPassword.

this.$.auth.createUserWithEmailAndPassword(event.detail.email,event.detail.pass) .then(function(response) { response.sendEmailVerification().then(function() { //success }).catch(function(error) { //error }); })