当我使用网页登录时,用户未登录。我实际上正在使用javascript在firebase上工作。如果我通过其他项目运行相同的代码,则可以正常工作。
var google = document.getElementById("google_sign")
var facebook = document.getElementById("facebook_sign")
var linked = document.getElementById("linked_sign")
var login = document.getElementById("login_btn");
var email1 = document.getElementById("email")
var password1 = document.getElementById("password")
login.onclick=function login1(){
email = email1.value;
password = password1.value;
firebase.auth().signInWithEmailAndPassword(email,password)
.then(() => window.location.href = 'part-after-login.html')
.catch(function(error) {
// Handle Errors here.
var errorCode = error.code;
console.log(error.Message);
});
}