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
1 Answer
Reset to default 17Updated on Mar 29th, 2024
Please note the following two points when you use createUserWithEmailAndPassword
to create a new account:
- Check if you get
auth/weak-password
error code when using a weak password (less than 6 chars) - 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