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
You can create a user using firebase.auth().createUserWithEmailAndPassword(email, password)
. The email
must be in a valid format. Don't forget that the password
must be strong enough. Firebase returns auth/weak-password
error code when using a weak password (less than 6 chars).
See also: https://firebase.google.com/docs/reference/js/firebase.auth.Auth#createUserWithEmailAndPassword
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.