Authenticator should show better error message when code in typed incorrectly too many times on Password reset #180
Labels
authenticator
This issue relates to the Authenticator component
bug
Something isn't working
pending-release
This issue has been fixed and will be included in a future release
Before creating a new issue, please confirm:
Which UI component?
Authenticator
Gradle script dependencies
Environment information
Please include any relevant guides or documentation you're referencing
No response
Describe the bug
On reset password use case, if the user keeps inserting the code incorrectly the Authenticator will show "Code is incorrect" for the first five times (CodeMismatchException). After that the Authenticator is showing generic "Sorry, something went wrong" -message to the user. This happens because Authenticator does not have specific handling for LimitExceededException which is received after fifth attempt. Better error message to show would be e.g. “Too many attempts, try again later”
Reproduction steps (if applicable)
No response
Code Snippet
// Put your code below this line.
Log output
amplifyconfiguration.json
No response
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: