Skip to content

[Bug] Generic auth error is returned when password does not meet requirements #1313

@LariozaFilament

Description

@LariozaFilament

Description

With the Enforcement Mode set to Require Enforcement, passwords that don't meet the password requirements result in a generic AuthError.Failure.

Image

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

  1. Set Enforcement mode to Require Enforcement
  2. Attempt to create an account in the Unity editor, or in a mobile build.
  3. --> 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!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions