-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat(authenticator): Extend fromError in AuthException #72
Conversation
β¦-FirebaseAuthException types
@@ -491,6 +491,30 @@ packages: | |||
url: "https://pub.dev" | |||
source: hosted | |||
version: "4.8.1" | |||
leak_tracker: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updates made with melos bs
βοΈ
factory AuthException.fromError(Object e) { | ||
if (e is! FirebaseAuthException) { | ||
return const AuthUndefinedError(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To use the original AuthException.fromError
, it was necessary to either:
- Expose
FirebaseAuthException
- Allow receiving exceptions other than
FirebaseAuthException
So, I implemented it with the latter!
@override | ||
String toString() => message; | ||
|
||
String get message; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have removed message
as it is often desired to be set by the user!
@@ -4,4 +4,4 @@ environment: | |||
sdk: ^3.0.0 | |||
|
|||
dev_dependencies: | |||
melos: ^3.4.0 | |||
melos: ^5.1.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Additionally, I updated to the latest version of melos
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
π What I did
βοΈ What I didn't do
β Verification
Screenshots
Additional Information