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
preguntada hace un año236 visualizaciones
1 Respuesta
2
Respuesta aceptada

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
EXPERTO
respondido hace un año
profile pictureAWS
EXPERTO
revisado hace un año

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas