Instasea
Instasea

Reputation: 151

Set AWS Cognito access token timeout manually

Is there anyway to change the access token timeout in AWS Cognito?

Upvotes: 6

Views: 8376

Answers (1)

Shubham Nigam
Shubham Nigam

Reputation: 3944

Amazon Cognito User Pools now enables customers to choose how long their access and refresh tokens should be valid. Access tokens can be configured to expire in as little as five minutes or as long as 24 hours. Refresh tokens can be configured to expire in as little as one hour or as long as ten years.

Reference:

  1. 08/2020: Cognito Token Expiration
  2. Using Tokens with User Pools - Amazon Cognito

Upvotes: 8

Related Questions