When I update the cognito users' email attribute via the updateAttribute
or adminUpdateAttribute
API, email_verified
will be set to false. So I'd like to set email_verified
to true programitically.
My understanding is that it should use GetUserAttributeVerificationCode
and VerifyUserAttribute
API to set email_verified to true, but I don't want users to enter verification code.
https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_GetUserAttributeVerificationCode.html
https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_VerifyUserAttribute.html
As far as I see below, it seems impossible.
https://forums.aws.amazon.com/thread.jspa?messageID=782609