Firebase signInWithEmailAndPassword() 400() POST 错误 [英] Firebase signInWithEmailAndPassword() 400() POST Error
问题描述
我目前正在我的 angularjs 应用程序中实现新的 firebase auth() 并且每次调用
I’m currently implementing the new firebase auth() in my angularjs app and every time I call
firebase.auth().signInWithEmailAndPassword(email, password)
它确实返回了我的承诺和错误/用户对象,但同时在控制台中抛出了以下错误:
it does return my promise and error / user object, but at the same time throws the following error in the console:
POST https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifyPassword?key=[myKey] 400 () firebase.min.js:110
似乎按预期工作,但我不喜欢控制台中的错误:3
Seems to be working as expected but I don't like errors in my console :3
完整的控制台错误(不幸的是缩小了):
Full console error (minified unfortunately):
firebase.min.js:110 POST
https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifyPassword?key=[myKey] 400 ()
L.send @ firebase.min.js:110
S.xe @ firebase.min.js:151
Vf @ firebase.min.js:149
(anonymous function) @ firebase.min.js:154
H @ firebase.min.js:77
$f @ firebase.min.js:154
(anonymous function) @ firebase.min.js:162
e.za @ firebase.min.js:80
Cd @ firebase.min.js:84
yd @ firebase.min.js:84
H.Nd @ firebase.min.js:83
id @ firebase.min.js:77
我猜我必须联系 Firebase 支持,对吗?
Guess I'll have to contact firebase support, right?
推荐答案
我可以确认@bojeil 的回答,错误是预期行为.密码正确时不会发生!
I can confirm @bojeil's answer, the error is intended behavior. Does not happen when password is correct!
这篇关于Firebase signInWithEmailAndPassword() 400() POST 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!