📅  最后修改于: 2022-03-11 15:03:26.254000             🧑  作者: Mango
var user = firebase.auth().currentUser;
var newPassword = getASecureRandomPassword();
user.updatePassword(newPassword).then(function() {
// Update successful.
}).catch(function(error) {
// An error happened.
});