📜  如何更改用户密码 firebase - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:26.254000             🧑  作者: Mango

代码示例1
var user = firebase.auth().currentUser;
var newPassword = getASecureRandomPassword();

user.updatePassword(newPassword).then(function() {
  // Update successful.
}).catch(function(error) {
  // An error happened.
});