Skip to content

Handle FirebaseAuthWeakPasswordException subclass of FirebaseAuthInvalidCredentialsException #289

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
rocketraman opened this issue Apr 10, 2022 · 0 comments

Comments

@rocketraman
Copy link

In the Android SDK, FirebaseAuthWeakPasswordException extends FirebaseAuthInvalidCredentialsException (see https://firebase.google.com/docs/reference/android/com/google/firebase/auth/FirebaseAuthWeakPasswordException).

The corresponding error code is auth/weak-password -- see the corresponding code in the JS SDK: https://github.com/firebase/firebase-js-sdk/blob/69ff8eb549e49de51cae11a04bce023bb6e1fc02/packages/auth/src/core/errors.ts#L551.

The current code mapping (https://github.com/GitLiveApp/firebase-kotlin-sdk/blob/master/firebase-auth/src/jsMain/kotlin/dev/gitlive/firebase/auth/auth.kt#L157) will handle this relatively important case as a generic error.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants