[Bug] Generic auth error is returned when password does not meet requirements
Description
With the Enforcement Mode set to Require Enforcement, passwords that don't meet the password requirements result in a generic AuthError.Failure.
Ideally I'd expect this to result in an error similar to the web sdk auth/password-does-not-meet-requirements. However resulting in AuthError.WeakPassword like when Enforcement Mode is set to Notify Enforcement would also help.
Also noting here that the auth/password-does-not-meet-requirements error is not documented in the web sdk docs.
Reproducing the issue
- Set Enforcement mode to Require Enforcement
- Attempt to create an account in the Unity editor, or in a mobile build.
- --> Observe a generic Failure error is returned.
Firebase Unity SDK Version
12.8.0
Unity editor version
6000.0.35
Installation Method
.unitypackage
Problematic Firebase Component(s)
Authentication
Other Firebase Component(s) in use
Analytics, Authentication, Firestore, Functions
Additional SDKs you are using
No response
Targeted Platform(s)
Android, Apple Platforms
Unity editor platform
Windows
Scripting Runtime
IL2CPP
Release Distribution Type
Pre-built SDK from https://firebase.google.com/download/unity
Relevant Log Output
If using CocoaPods for Apple platforms, the project's Podfile.lock
Expand Podfile.lock snippet
👀 Replace this line with the contents of your Podfile.lock!
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
Hi @LariozaFilament, thanks for bringing this to our attention. I did some testing, and I was also able to reproduce the behavior. I'll raise this to our engineers to see if it's WAI or not.