-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[firebase_auth] Missing Exceptions #3273
Comments
I can see the same for many other methods, like |
Hmm, those ones are not method specific and can happen across them all - maybe worth adding these to the FirebaseAuthException class. |
As @Ehesp mentioned these 2 errors specifically can happen on any auth call. We should definitely still list them somewhere, perhaps the Would you mind sending over a PR @feinstein? This would be helpful, thanks |
I don't mind, but I think this could be tricky, people will only see the current list of exceptions and won't look the |
I think that's fair, could add in both places then? |
I don't think this is just about 2 places, is it? How many exception docs were changed? Is this only a problem for Firebase Auth? |
Lets add it here: https://firebase.flutter.dev/docs/auth/error-handling & here: https://pub.dev/documentation/firebase_auth_platform_interface/latest/firebase_auth_platform_interface/FirebaseAuthException-class.html (below the class description). |
#3402 check out this PR. It could solve some exception codes struggles 👋 |
As I update the APIs my App is using, I am also finding other exceptions mismatches:
So, which of these should be included into You only asked me to include the 2 that I found missing at first ( |
@feinstein check out the #3402 PR. The |
@KristianBalaj I saw your PR, but it doesn't answer the questions:
|
@feinstein from the PR. There are all the codes (found in the tests). That's the response to 2. |
@KristianBalaj thanks, I can see the old Exceptions missing with similar names in that file. But still @Ehesp we need to better document this so our App can better handle alerts for the user, explaining what went wrong and how to fix it or contact support. We need a list of all the exceptions that can be thrown at any time, we also need to reference that list at any function that could have them thrown. |
@feinstein Put my thoughts in the PR: #3402 (comment) |
There's a new exception |
@Salakar @Lyokone @Ehesp @feinstein |
I am migrating my exceptions to the new ones and on
signInWithEmailAndPassword()
I can see some changed. These are the old:And these are the new:
So
ERROR_TOO_MANY_REQUESTS
andERROR_OPERATION_NOT_ALLOWED
aren't in the docs anymore.Just to confirm, is this intentional or are they missing?
The text was updated successfully, but these errors were encountered: