I use Google's reference for Email/Password authentication https://firebase.google.com/docs/auth/web/password-auth?authuser=0#web-version-9 in my React - Redux - Saga project.
Is it okay, that Firebase's createUserWithEmailAndPassword() function takes in password value as the third argument?
My Firebase code looks like this:
export const fbSignUp = async (email: string, password: string) => {
try {
const newUser = await createUserWithEmailAndPassword(auth, email, password);
await setDoc(doc(db, "users", newUser.user.uid), {
email,
});
} catch (error: any) {
alert(error.message);
}
};
In my input element I set type attribute to Password, but when I console.log(password) in the function above, it displays it in a raw style (without any coding or encryption).