1

I have been able to log in and log out for a while with the exact same email and password combination. However, now, every time I try to log in (I tried the following cases: disabled my user on the console, reset my users passcode on the console) I get the error:NotAuthorizedException: Incorrect username or password.

To check if I am just not remembering right, I created a NEW user. The user now has the status FORCE_CHANGE_PASSWORD on the console. However, my console is logging the same error, not authorized. Can anyone help me out?

  • What is your problem? `FORCE_CHANGE_PASSWORD` or `NEW_PASSWORD_REQUIRED`... means you have to update the account password. – hoangdv Dec 24 '21 at 01:25
  • Ran into this error but from an unconfirmed `email` attribute. Resolved by calling the `confirmRegistration()` method. – Patrick Mutuku Sep 02 '22 at 00:47

2 Answers2

1

I rolled back some of my work to when it was working. The issue appears that instead of feeding the username and passcode directly to the authentication device, I was passing it through as an object which resulted in the Cognito sdk not receiving a user passcode pair it could parse correctly.

-3

Recreate your User pool, it will work fine.

cheng
  • 1
  • 2
    This answer was incorrect. And you didn't actually answer the question. It has no supporting documentation which needs to be added. – Joseph Oct 27 '22 at 15:08