【发布时间】:2020-06-02 00:12:45
【问题描述】:
我目前正在开发用户 crud,但缺少最后一步,即删除用户的身份验证帐户,但我无法做到这一点。怎么了?
代码:
deleteUserButton.addEventListener('click', function(){
firebase
.auth()
.signInWithEmailAndPassword(email, password)
.then(function(user){
user.delete()
})
})
【问题讨论】:
-
您可能希望将
catch添加到您的promise/signInWithEmailAndPassword以获取/记录潜在错误。很难,我做不到不是很准确的描述。
标签: node.js firebase firebase-authentication