I was wondering if anyone knew the official allowed passwords for Firebase's Email and Password Authentication API.
So far I understand that there is
If this is the case, would the regex for validation on my side just be {6,}
? (alternatively I could just check the length of the field)
EDIT: I assume it's similar to Google's normal password requirements but only requiring 6 characters instead of 8.
For anyone looking for a regular expression to validate password before sending to firebase.
I suggest to use this pattern as it pass as minimum
qualifications! also firebase verify and validate password after you send it too Firebase cloud... so keep it simple.
let pattern: String = "(?=.*[0-9a-zA-Z]).{6,}"
{6,}
(?=.*[0-9a-zA-Z])
Remember, it is just the minimum requirements for a valid password, you can choose how strong the password should be based on your software.
Your understanding is correct - the only requirement is a minimum of 6 chars.
However, if you are building Android/iOS apps, I would suggest -not- to hardcode the validation logic in your app, since the new user signup request is handled by Firebase Auth server.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With