跳至內容

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 年前檢視次數 5479 次

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!

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。