[Authenticator] Allow specifying string messages for arbitrary exception types #181
Open
1 task done
Labels
authenticator
This issue relates to the Authenticator component
feature-request
New feature or request
Before opening, please confirm:
Which UI component is this feature-request for?
Authenticator
Please include any relevant guides or documentation you're referencing
No response
Please describe your feature-request in detail.
On the Swift Authenticator, you can specify string content for any cognito error by using a specific string key, even if Authenticator itself doesn't have any logic for that case. We should implement a similar system on Android.
The list of exceptions we can expect to receive can be found here. We can transform the exception type into a string resource ID using some known algorithm, something like:
amplify_ui_authenticator_error_
This would result in e.g.
ParseTokenException
resolving to a stringR.string.amplify_ui_authenticator_error_parse_token
that could be defined in the application resources to set the content for this exception.Initialization steps (if applicable)
No response
Code Snippet
// Put your code below this line.
amplifyconfiguration.json
No response
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: