amazon-archives / amazon-cognito-identity-js

Amazon Cognito Identity SDK for JavaScript
Other
986 stars 452 forks source link

How to react to ChallengeName : "PASSWORD_VERIFIER" #628

Closed pizzarob closed 6 years ago

pizzarob commented 6 years ago

I am using the authenticateUser method and am getting a 400 error with the following field in the response:

ChallengeName: "PASSWORD_VERIFIER"

How can I respond to this?

itrestian commented 6 years ago

If you are calling authenticateUser this SDK should take care of that considering you are passing the correct user pool id, client id, username, and password. So authenticate user is responding to the PASSWORD_VERIFIER challenge. What exactly is the 400 error you are getting?

pizzarob commented 6 years ago

Sorry - my mistake. I wasn't passing all the required information. Closing.