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.

已提問 3 年前檢視次數 2053 次
1 個回答
0

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

已回答 3 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南