2 Answers
- Newest
- Most votes
- Most comments
4
One of the possible reasons:
When using initiate_auth, Cognito expects users with temporary passwords to change their password before logging in, so instead of directly using initiate_auth, try using the Challenge Response Flow to handle password changes.
1
Please check if the temporary password has special characters. As the password is embedded into email, it could be html formatted. If you obtain the password from the email rendered in html, things should work fine. Please make sure you have the right password from the email.
answered a year ago
Relevant content
- asked 4 years ago
- asked 4 years ago
- asked 3 years ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 6 months ago
- AWS OFFICIALUpdated 3 years ago

When I try to login with initiate_auth, it should give, challenge name "NEW_PASSWORD REQUIRED" and it is handled, but when I tried to login with the created mail and temp password given by cognito through the mail, it throws invalid username and password instead of getting the challenge name. And this issue is faced for some users only