vaquar khan
vaquar khan

Reputation: 11449

non expire AWS Cognito token

I am developing a mobile app where authentication /Authorization handling by AWS cognito (aws-amplify) Now as per my design app can work offline next 15 days once login but cognito required to refresh token every 60 min .

How to create refresh token for non expire or expire only in next 15 -20 (configurable ) days ?.

Upvotes: 0

Views: 1572

Answers (1)

Tuan Vo
Tuan Vo

Reputation: 2065

By default, the refresh token expires 30 days after your app user signs in to your user pool. When you create an app for your user pool, you can set the app's refresh token expiration (in days) to any value between 1 and 3650.

https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-using-tokens-with-identity-providers.html

Upvotes: 2

Related Questions