Cognito: UserNotConfirmedException before NotAuthorized #4608
Labels
bug
This issue is a bug.
p3
This is a minor priority issue
service-api
This issue is due to a problem in a service API, not the SDK implementation.
Describe the bug
Hello,
My example scenario is the following:
If i register a new user with email : test@test.com , password : Test@123 and did not verify the mail, then if i login with same email but different password such as Example@123 then it gives an UserNotConfirmedException error which is for User is not confirmed.
Instead of that I need : wrong email / password combination - NotAuthorizedException. As password entered is incorrect.
Do you have any suggestions to fix this?
Thank you!
Expected Behavior
Cognito throws NotAuthorizedException
Current Behavior
Cognito throws UserNotConfirmedException
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
SDK version used
2.1568.0
Environment details (OS name and version, etc.)
Node.js in Lambda
The text was updated successfully, but these errors were encountered: