Is there anyway I can change the expiry time set to the verification code sent through SMS (Or Email) by AWS Cognito?
By default, the verification code expires in 24 hours which is not convenient in the case where there is a time limit in the app to verify your mobile/Email.
There isn't really anything useful from the AWS Cognito documentations or developer's guide.
According to their docs, we can not change OTP expiry. https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-mfa-sms-text-message.html
To adjust this period, change your app client Authentication flow session duration.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.