I have an angular project set up with Firebase. I have a Create user form. It works perfectly when I create the user, and it displayed in firebase Users
But when I try to log in, it says the password is incorrect. But I 100% sure the password is correct.
Can someone explain to me how is this possible or where is my mistake?
onLogin() {
let email: string = this.loginForm.get('email').value;
let password: string = this.loginForm.get('password').value;
this.auth.signInWithEmailAndPassword(email,password).then(
() => {
this.router.navigate(['home'])
}
)
}