Cognito Forgot password email not received.

0

I am using the amazon-cognito-identity-js NPM module to interface with Cognito for signup, login, logout, forgot password, change password, etc.

Forgot password was working and recently ceased to work. It appears to work in that I get the 200 OK from the https://cognito-idp.us-east-2.amazonaws.com/ POST. The data being posted with the ClientId and Username is also correct. Invoking the API also responds back with the "Email with verification code has been sent to d***@g***.com". The problem is that the email that should contain the verification code never arrives. I know the email address is fine because it works for the signin and add user scenarios.

In Cognito->MFA and Verifications I have the account recovery set to "Email Only".

I was using the default email in Cognito and thought that might be the issue yet the problem continues after integration with SES.

I'm at a loss. In summary, the forgot password appears to work as I have confirmed that no errors are received when communicating with AWSCognitoIdentityProviderService.ForgotPassword end-point yet the email with the verification code is never sent.

gefragt vor 3 Jahren2052 Aufrufe
1 Antwort
0

I found the issue. The user attribute email_verified was not set to true.

beantwortet vor 3 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen