[REQUIRED] Environment info
firebase-tools: 11.25.1
**Platform:**mac os, nmp
[REQUIRED] Test case
Auth emulator creates a user with empty email and password.
const email = "";
const password = "";
await createUserWithEmailAndPassword(auth, email, password)
.then((user) => {
console.log("Registered and logged in:", user);
})
.catch((error) => {console.log(error)}
[REQUIRED] Steps to reproduce
Passing empty strings to createUserWithEmailAndPassword results in account creation and signing in with the created user credentials, even though credentials lack. Basically it resembles anonymous login, but the created and signed in current user is not anonymous (isAnonymous: false) despite the fact that all object fields except for uid are empty.
At the same time deployed version does not allow for empty strings to be passed to createUserWithEmailAndPassword. Doing so results in error "auth/invalid-email"
[REQUIRED] Expected behavior
Expected throwing an error "auth/invalid-email"
[REQUIRED] Actual behavior
Empty account gets created