📜  更改密码 firebase - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:52.847000             🧑  作者: Mango

代码示例2
var user = firebase.auth().currentUser;
 if (user.password == state.password) {
   user.updatePassword(state.password).then(function() {
    // Update successful.
  }).catch(function(error) {
    // An error happened.
  });
 }