Javascript Firebase Web身份验证错误:电子邮件id已被其他帐户使用
我正在使用firestore创建一个web应用程序,我也在使用firebase身份验证,但有几天我面临一个独特的问题 当我尝试使用任何电子邮件或密码注册时,都会抛出相同的错误“电子邮件id已被另一个帐户使用”。我不知道发生了什么事 代码如下所示Javascript Firebase Web身份验证错误:电子邮件id已被其他帐户使用,javascript,firebase,firebase-authentication,google-cloud-firestore,Javascript,Firebase,Firebase Authentication,Google Cloud Firestore,我正在使用firestore创建一个web应用程序,我也在使用firebase身份验证,但有几天我面临一个独特的问题 当我尝试使用任何电子邮件或密码注册时,都会抛出相同的错误“电子邮件id已被另一个帐户使用”。我不知道发生了什么事 代码如下所示 firebase.auth().createUserWithEmailAndPassword(email, password).then(function(){ firebase.auth().onAuthStateChanged((us
firebase.auth().createUserWithEmailAndPassword(email, password).then(function(){
firebase.auth().onAuthStateChanged((user) => {
if (user) {
localStorage.setItem('isLoggedIn',true);
window.location = '#!/dashboard';
} else {
return false;
}
});
}).catch(function(error) {
var errorCode = error.code;
var errorMessage = error.message;
alert(errorMessage);
});
每次我使用不同的电子邮件id注册,但仍然显示相同的错误。我看过firebase控制台,也没有添加用户
任何帮助都将不胜感激