내용으로 건너뛰기

Cognito Custom Auth session duration

0

Hi, I'm looking for a way to change the default Cognito custom auth session timeout.

As explained at the end of this tutorial here: https://aws.amazon.com/fr/blogs/mobile/implementing-passwordless-email-authentication-with-amazon-cognito/

default timeout is 3 minutes.

Is it possible to change to another value ?

질문됨 3년 전5.5천회 조회

1개 답변
2
수락된 답변

Hi Sebastian,

To adjust this period, change your app client Authentication flow session duration.

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

Hope it helps/inspires you ;)

전문가

답변함 3년 전

전문가

검토됨 2년 전

  • Hello, thanks for taking the time to help me ! I'm aware of token duration, but this token is not related to custom auth session timeout unfortunately. Thanks for the more recent, and comprehensive tutorial from Yan Cui, schemas are really helpful in this tutorial. Unfortunately the session timeout is not mentioned.

  • What about this? https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-authentication-flow.html.

    Check the part: To adjust this period, change your app client Authentication flow session duration.

    Updated answer above too.

  • Thank you so much @alatech, this is exactly the parameter i was looking for, and of course it was just in front of my eyes !

  • Hi @Sebastien glad it help :). I d appreciate if then you can also accept the answer so it is easier for community to benefit for clarity when searching for similar issues, thanks!

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.