-
Notifications
You must be signed in to change notification settings - Fork 56
chore : added new properties to web_authentication_exception and credentials_manager_exception class #609
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
Conversation
…entials_manager_exception class to easily check for specific error scenarios
| code == 'RENEW_FAILED' || | ||
| code == | ||
| ''' | ||
| An error occurred while trying to use the Refresh Token to renew the Credentials.'''; |
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.
These need a proper error code on the Android side as well.
|
@pmathew92 iOS checks in the CI are failing but merge button is enabled. Is it expected? |
Yes. The iOS smoke tests were failing for quite some time @Widcket might take a look into them if she has bandwidth |
|
@pmathew92 @Widcket @NandanPrabhu My use case (and I am wondering how others are solving it) -> If I do see an error during the I would be super happy for any advise from your side 😃 |
|
Hi @wiesnery , |
|
Hi @pmathew92, Could you confirm my findings or prove me wrong (I prefer the latter xD) and/or give me a hint on how to proceed maybe not only on the exception handling level, but maybe what should be correctly done with my high level problem on when to clearCredentials() and when better not to? Cheers! |
|
Hi @wiesnery , The current underlying Android SDK within the flutter SDK is quite old at the moment which returns generic error and makes it difficult to map to specific error scenario like in your cases. We are working on updating this with the latest version which can give much better error response. This new major version of the flutter sdk will be released soon within next two week. If possible, I would request you to wait till then |
|
@pmathew92 could you tell me when I can expect the release of the new package version? I am still waiting and I postponed my bug-fix update because you told me that I should wait and that you gonna ship within two weeks. I know thinks sometimes take longer than expected - do you habe a new timeframe and the confirmation that my requested feature for more precise exceptions will be included? |
|
Hi @wiesnery , Apologies on this. We are working on a feature which we plan to release as part of the next release. It is under code review and might take few more days. We plan to make release sometime next week unless we odn't expect any major blocker on our side. Thanks for your understanding |
|
Hi @pmathew92 thank you for your prompt reply! |
|
Hi @wiesnery , |
📋 Changes
This PR adds new properties in the
web_authentication_exceptionandcredentials_manager_exceptionclass to easily compare for specific error scenarios📎 References
#395