Unclear error message content in AmplifyExceptions #2794
Labels
auth
Related to the Auth category/plugins
closing soon
This issue will be closed in 7 days unless further comments are made.
question
General question
Before opening, please confirm:
Language and Async Model
Kotlin, RxJava
Amplify Categories
Authentication
Gradle script dependencies
Environment information
Please include any relevant guides or documentation you're referencing
No response
Describe the bug
Android app using cognito auth
I'm unsure of what error message I can propagate from Amplify to my user upon RxAmplify onError calls.
In the above example using
RxAmplify.Auth.resetPassword(username)
with a known unused username, we get an exception as expected. I could be missing something simple, but what is unclear to me, is which message should be shown to the user.RxAmplify.Auth.signIn(username, password)
)cause
same thingShould we expect to use any of these error messages in the exception object universally (ie my class that wraps amplify Rx calls can always expect the
cause
to have the error message i want to display in the UI) or should we somehow be parsing these exception types and supplying our own error copy?Reproduction steps (if applicable)
No response
Code Snippet
// Put your code below this line.
Log output
amplifyconfiguration.json
No response
GraphQL Schema
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: