how to increase expiration time of cognito identity pool credentials

0

I am using identity pool credentials to authenticate my requests to the API gateway. the problem is the credentials last for only 1 hour. Is there a way to increase the expiration time? I have searched for this answer but I am getting answers on how to increase the time for id token and access token of Cognito user pool

1 Answer
0

Within the AWS Console, navigate to Cognito then navigate to your user pool, then the App Integration tab, and scroll to the bottom of the page to App Clients and click "edit" for existing App Clients or "Create" for a new App Client. In the top card labeled "App Client Information" click edit and you can change the timeout settings for all of the tokens:

Enter image description here

You can also do this with the AWS CLI and SDK: https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateUserPoolClient.html#CognitoUserPools-CreateUserPoolClient-request-TokenValidityUnits

answered 2 months ago
  • but it doesn't increase the expiration for identity pool credentials

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