馃悰 [firebase_auth] Platforms other than web throw an incorrect exception using LoginWithEmailAndPassword and email enumeration protection #10588
Labels
platform: android
Issues / PRs which are specifically for Android.
platform: ios
Issues / PRs which are specifically for iOS.
plugin: auth
type: bug
Something isn't working
Bug report
Describe the bug
When using LoginWithEmailAndPassword with incorrect login credentials while having email enumeration protection enabled on the firebase project (https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection), platforms other than Web throw an incorrect exception.
Web throws FirebaseAuthException with error code "invalid-login-credentials" as it should.
iOS throws simply FirebaseAuthException with error code "internal error" and a generic error message "An internal error has occurred, print and inspect the error details for more information." with no way to recover the "invalid_login_credentials" error.
Android throws FirebaseAuthException with "internal error" as the code, but with an error message that includes "invalid_login_credentials"
Steps to reproduce
Steps to reproduce the behavior:
Expected behavior
Every platform should throw FirebaseAuthException with error code "invalid-login-credentials"
Flutter doctor
Run
flutter doctor
and paste the output below:Click To Expand
Flutter dependencies
Run
flutter pub deps -- --style=compact
and paste the output below:Click To Expand
The text was updated successfully, but these errors were encountered: