Amplify-js: Too many password attempts exceeded needs its own error code from Cognito

Created on 13 Jul 2018  路  8Comments  路  Source: aws-amplify/amplify-js

Password attempts exceeded needs its own error code from Cognito.

Do you want to request a feature or report a bug?
Feature

What is the current behavior?

When a user has exceeded their password attempts or entering wrong password the error code is: 'NotAuthorizedException'.

Only the message property is different:
Wrong password = 'Incorrect username or password'
Too many attempts = 'Password attempts exceeded'

How to reproduce:
Try to authenticate user 5-10 times with incorrect password.

What is the expected behavior?
Maybe provide new error code for this case. PasswordAttemptsExceeded to make it easier to handle this in the client.

Auth feature-request

Most helpful comment

is there any update about this issue?

All 8 comments

Hello, thanks for submitting this issue.

Seems this has been brought up within the Cognito team last year:
https://github.com/amazon-archives/amazon-cognito-identity-js/issues/479

Could this be explained in the docs?
https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_InitiateAuth.html

Some RFIs require more detail to ensure requirements are met

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

is there any update about this issue?

Just going to shout in the echo chamber:

Is there any update on this issue yet? Did the team forget about this issue or forget to post here???

Hello - We've passed this information to the Cognito team internally and they're tracking it. I'll go ahead and close this issue but if you'd like to raise it on another channel you could also open an AWS support case.

Hola chicos intento entrar para bajar el repositorio de codigo por linea de comandos y me dice que la contrase帽a es icorrecta, sin embargo entro al repositorio de git hub con la misma que digito en la linea de comandos y me permite la entrada al sitio. alguien sabe que sucede?

Hola chicos intento entrar para bajar el repositorio de codigo por linea de comandos y me dice que la contrase帽a es icorrecta, sin embargo entro al repositorio de git hub con la misma que digito en la linea de comandos y me permite la entrada al sitio. alguien sabe que sucede?

https://github.com/git-guides/git-clone

Was this page helpful?
0 / 5 - 0 ratings