Can you request a SHORTER token expiration in the InitiateAuth request for Cognito IDP?

0

In Cognito IDP, is it possible to request a SHORTER token expiration than what the App Client lifetime is? I have a need to generate a shorter life token. Is the way to do that to just create/use a second App client ID with a shorter lifetime?

profile picture
wz2b
已提问 1 年前237 查看次数
1 回答
2
已接受的回答

Hi there!

Yes, you should create a new application to change the token expiration. When you create an application for your user pool, you can set the application's refresh token expiration to any value between 60 minutes and 10 years.

I hope this helps.

profile pictureAWS
专家
已回答 1 年前
profile pictureAWS
专家
已审核 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则