I am learning firebase authentication. I set my sign-in method to email/password. I manually added some users and have built a sign-in and a signup form.
When I try to sign in with the manually added user details using the signInWithEmailAndPassword(email, password) function I get an error as code: 'auth/user-not-found'.
When I try to create a new user using createUserWithEmailAndPassword(email, password)
the new user created is not reflected in the firebase authentication users table.
Here is my code which fires when I click sign up button:
const createUserWithEmailAndPasswordHandler = (email, password) => {
auth.createUserWithEmailAndPassword(email, password)
.then((userCredential) => {
const user = userCredential.user;
console.log(user);
})
.catch((error) => {
console.log(error);
});
}
My firebase version: "firebase": "^7.14.2"
Please guide me on why the user table is not updating and why I cannot sign in using the manually added user data.