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
asked a year ago225 views
1 Answer
2
Accepted Answer

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
EXPERT
answered a year ago
profile pictureAWS
EXPERT
reviewed a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions