我有此代码: firebase.auth().getUser(user.uid).delete().then(function() { console.log("user deleted"); }).catch(function(error) { console.log("Error while deleting user " + user.email); });如果firebase.auth()不为null,为什么会出现此错误?这就是我包括firebase的方式: <!-- Firebase App (the core Firebase SDK) is always required and must be listed first --> <script src="https://www.gstatic.com/firebasejs/5.9.4/firebase-app.js"></script> <!-- Add Firebase products that you want to use --> <script src="https://www.gstatic.com/firebasejs/5.9.4/firebase-auth.js"></script> <script src="https://www.gstatic.com/firebasejs/5.9.4/firebase-firestore.js"></script>例如,在“身份验证”中创建用户对我而言有效,或者更新实时数据库。但是,当我尝试从身份验证中删除用户时,出现此错误。
添加回答
举报
0/150
提交
取消