簡體   English   中英

創建用戶時收到錯誤請求錯誤請求 400(Firebase)

[英]Getting a bad request bad request 400 when creating user(Firebase)

我正在開發一個網絡應用程序,我正在為此使用 Firebase。 由於我還沒有域名,我正在嘗試使用我的本地主機。 我可以在OAuth redirect domains看到 localhost 。 初始化部分也工作正常。

但是,當我使用firebase.auth().signInWithEmailAndPassword創建用戶時,它會在發布到https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifyPassword時顯示[HTTP/2.0 400 Bad Request 447ms]

我也是網絡應用程序開發和 Firebase 網絡的新手。 有人請幫助我使用我的本地主機做到這一點。

謝謝

您可以使用firebase.auth().createUserWithEmailAndPassword(email, password)創建用戶。 email必須采用有效格式。 不要忘記password必須足夠強。 使用弱密碼(少於 6 個字符)時,Firebase 返回auth/weak-password錯誤代碼。

另請參閱: https : //firebase.google.com/docs/reference/js/firebase.auth.Auth#createUserWithEmailAndPassword

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM