简体   繁体   English

AWS Cognito SMS 验证 - 更改 OTP 到期时间

[英]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?无论如何,我可以将到期时间设置更改为 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.默认情况下,验证码会在 24 小时后过期,这在应用程序中验证您的手机/电子邮件有时间限制的情况下不方便。

There isn't really anything useful from the AWS Cognito documentations or developer's guide. AWS Cognito 文档或开发人员指南中没有任何有用的内容。

To adjust this period, change your app client Authentication flow session duration.要调整此时间段,请更改您的应用程序客户端身份验证流程 session 持续时间。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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