Skip to content

Instantly share code, notes, and snippets.

@noid11
Created December 28, 2020 04:23
Show Gist options
  • Save noid11/314bf086af0e83f366eaef95da92ef75 to your computer and use it in GitHub Desktop.
Save noid11/314bf086af0e83f366eaef95da92ef75 to your computer and use it in GitHub Desktop.
Cognito User Pool で email 属性を検証するメールを再送したい
  • GetUserAttributeVerificationCode API で再送可能
  • 再送された検証メールに記載されているコードを VerifyUserAttribute API で検証できる
  • ただし、そもそも AdminUpdateUserAttributes API を使って email_verified 属性を true に設定することで email 属性を検証済みとして扱うこともできる

GetUserAttributeVerificationCode - Amazon Cognito Identity Provider
https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_GetUserAttributeVerificationCode.html

VerifyUserAttribute - Amazon Cognito Identity Provider
https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_VerifyUserAttribute.html

AdminUpdateUserAttributes - Amazon Cognito Identity Provider
https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminUpdateUserAttributes.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment