简体   繁体   中英

AWS Cognito SMS Verification - Changing OTP expiry time

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.

To adjust this period, change your app client Authentication flow session duration.

https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-authentication-flow.html

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM