I m the first time on use the AWS Cognito Auth.
- created a User Pool (succeed)
- use AdminCreateUser API to create a user in pool (succeed)
- try to use AdminInitiateAuth API and AdminRespondToAuthChallenge API to got a access token (succeed)
- try to use ForgotPassword API to reset password, but it does not work at all.
here is my code for ForgotPassword in JAVA:
ForgotPasswordRequest request = ForgotPasswordRequest.builder()
.clientId(GetUserPoolClientId(companyCode))
.username(userEmail)
.build();
ForgotPasswordResponse response = cognitoClient.forgotPassword(request);
the response give me ***@gmail.com, but I do not receive any emails.