Firebase confirmation email not being sent -


i've set firebase email/password authentication successfully, security reasons want user confirm her/his email. says on firebases website:

when user signs using email address , password, confirmation email sent verify email address.

but when sign up, doesn't receive confirmation email.

i've looked , can find code sending password reset email, not code sending email confirmation.

i've looked here:

https://firebase.google.com/docs/auth/ios/manage-users#send_a_password_reset_email

anyone got clue how can it?

i noticed new firebase email authentication docs not documented.

firebase.auth().onauthstatechanged(function(user) {   user.sendemailverification();  }); 

do note that:

  1. you can send email verification users object whom created using email&password method createuserwithemailandpassword
  2. only after signed users authenticated state, firebase return promise of auth object.
  3. the old onauth method has been changed onauthstatechanged.

to check if email verified:

firebase.auth().onauthstatechanged(function(user) {    if (user.emailverified) {     console.log('email verified');   }   else {     console.log('email not verified');   } }); 

Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -