Reputation: 11449
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
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.
Upvotes: 2