You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The password check of admin.auth().createUser(...) does not consider a password value of "undefined". If the password is undefined, the user will be created without any problems.
In my opinion a undefined string should throw an error as well.
Steps to reproduce:
Take the code from below and set different values for the constant value "myPassword" and run it with "npm yourscriptname.js".
Password is optional for user accounts. Therefore it's perfectly valid to create a user account without any password. Our validation therefore triggers only when something other than undefined is specified as a password.
[READ] Step 1: Are you in the right place?
Yes :)
[REQUIRED] Step 2: Describe your environment
[REQUIRED] Step 3: Describe the problem
The password check of admin.auth().createUser(...) does not consider a password value of "undefined". If the password is undefined, the user will be created without any problems.
In my opinion a undefined string should throw an error as well.
Steps to reproduce:
Take the code from below and set different values for the constant value "myPassword" and run it with "npm yourscriptname.js".
Test cases:
Relevant Code:
If the password does not match the password rules of Firebase the following error will be shown (catch case):
The text was updated successfully, but these errors were encountered: