我试图为firebase创建一个邮件和密码用户,但我不断收到这个错误:
错误:浏览器在登录请求完成之前重定向了页面。{code: "REQUEST_INTERRUPTED", stack: (...), message: "浏览器在登录请求完成之前重定向了页面。"}
var ref = new Firebase("https://***.firebaseio.com");
$('.btn').click(function() {
var mail = $('#inputEmail3').val();
var pass = $('#inputPassword3').val();
ref.createUser({
email : mail,
password : pass
}, function(error) {
if (error === null) {
console.log("User created successfully");
} else {
console.log("Error creating user:", error);
}
});
});
$(document).ready();