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.

질문됨 4년 전2337회 조회
1개 답변
0

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

답변함 4년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인