how to reset firebase auth password in react native

☆樱花仙子☆ 提交于 2020-08-08 06:39:08

问题


I want to know how to reset password of firebase email authentication password in my react-native project . I like to sent an email for resetting the password. How to do that using the following method

  firebase.auth().sendPasswordResetEmail 

回答1:


 forgotPassword = (Email) => {
    firebase.auth().sendPasswordResetEmail(Email)
      .then(function (user) {
        alert('Please check your email...')
      }).catch(function (e) {
        console.log(e)
      })
  }

An email should be passed for this forgot password method.



来源:https://stackoverflow.com/questions/54515444/how-to-reset-firebase-auth-password-in-react-native

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!