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年前236ビュー
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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ