最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Getting a bad request bad request 400 when creating user(Firebase) - Stack Overflow

programmeradmin1浏览0评论

I am developing a web app and I'm using Firebase for that. Since I do not have a domain name yet, I'm trying to use my localhost. I can see localhost in OAuth redirect domains. Also the initializing part is working fine.

But when I create a user using firebase.auth().signInWithEmailAndPassword it shows [HTTP/2.0 400 Bad Request 447ms] when posting to .

I'm new to web app development and Firebase web as well. Somebody please help me to do this using my localhost.

Thank you

I am developing a web app and I'm using Firebase for that. Since I do not have a domain name yet, I'm trying to use my localhost. I can see localhost in OAuth redirect domains. Also the initializing part is working fine.

But when I create a user using firebase.auth().signInWithEmailAndPassword it shows [HTTP/2.0 400 Bad Request 447ms] when posting to https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifyPassword.

I'm new to web app development and Firebase web as well. Somebody please help me to do this using my localhost.

Thank you

Share Improve this question asked May 20, 2016 at 12:54 ChoxmiChoxmi 1,6645 gold badges31 silver badges48 bronze badges 1
  • Can you show the entire function you use to create users? signInWithEmailAndPassword wouldn't you use to create users, but to sign in users already registrered. – hellogoodnight Commented May 20, 2016 at 13:14
Add a comment  | 

1 Answer 1

Reset to default 17

Updated on Mar 29th, 2024

Please note the following two points when you use createUserWithEmailAndPassword to create a new account:

  1. Check if you get auth/weak-password error code when using a weak password (less than 6 chars)
  2. Check if you try to use a registered email (Hozayfa and Aakash mentioned)

This password policy performs on updating an existing account's password as well.

See also:

  • https://firebase.google.com/docs/auth/web/password-auth

  • https://firebase.google.com/docs/reference/kotlin/com/google/firebase/auth/FirebaseAuthWeakPasswordException

发布评论

评论列表(0)

  1. 暂无评论