Skip to content

Facing Issue after creating Temporary password by AWSCognito

0

During temporary password creation by cognito, it assigns a temporary password, But it throws invalid password and username error if i use login API (initiate_auth) with this password.

this issue is not coming always. but having issue sometimes

any idea what was the reason ? Or is it an open bug of cognito ?

2 Answers
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.

EXPERT
answered a year 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

1
Accepted Answer

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

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.