-
Notifications
You must be signed in to change notification settings - Fork 9
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
Wrong error message when user provides correct credentials after too many incorrect attempts #92
Comments
Hi @sasaar , thanks for opening this issue. Unfortunately Cognito returns a I'll tag this as a feature request and we'll discuss if there's any alternative we can offer. |
Thanks for the prompt reply. |
We've released version 1.1.7 that now lets you use the For example, this would achieve what you wish: Authenticator { _ in
// ....
}
.errorMap { error in
// Return custom message when password attempts are exceeded
if case .notAuthorized(let description, _, _) = error, description == "Password attempts exceeded" {
return .error(message: "[Your custom message]")
}
// Let the Authenticator handle all remaining errors
return nil
} However, as I said earlier, keep in mind that the description string is coming directly from the Cognito service and that it might change. |
Many thanks. We will try this (version 1.1.7) asap. |
Hi @sasaar, we've decided to handle this particular scenario within the Authenticator. It's been released in version 1.1.8. You can still use the I'm closing this feature request as completed. Feel free to reopen it or create another issue if something's not working as expected. |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Description:
This is more feature request than bug, but after user has entered wrong credentials on login several times and then provides correct credentials, localised message for .notAuthorized is returned:
AuthenticatorBaseState still seems to know the exact reason:
Would it be possible to get own localized message for login error when password attempts are exceeded?
The text was updated successfully, but these errors were encountered: