Sendo Cuenca Sivera
Sendo Cuenca Sivera

Reputation: 1

Is there a way to change the length of email confirmation code in AWS Cognito Service?

Currently the AWS Cognito supports only 6 digits confirmation code and there is no configuration to change this. But in some cases, there is a need to change the length of this confirmation code length, say to 4 or 8, for the convenience of the users who signs up or as a better security measure. I'd like to know if there is a way to do this via lambda function trigger for Cognito or whatever. Thank.

Upvotes: 0

Views: 636

Answers (1)

smac2020
smac2020

Reputation: 10724

You can configure whether you want to use Email or Phone Verification. See this doc topic for more information.

Email or Phone Verification

Using the Cognito API, you cannot change the length of the verification code. See - AWS Cognito Verification Code length change

Upvotes: 1

Related Questions