aws-cognito-react icon indicating copy to clipboard operation
aws-cognito-react copied to clipboard

Token expiration

Open shkomg opened this issue 5 years ago • 1 comments

Hi David,

how do you handle token expiration?

As I know Cognito token expires in 1 hr. So if the app stays idle for 1+ hrs on protected route (while user is signed in and on restricted page) and then user clicks something does it renews token automatically & then performs the request?

For example if request goes to AWS Gateway API which checks user over Cognito - error going to be returned if token is expired.

Thank you.

shkomg avatar Apr 19 '19 15:04 shkomg

Any update on this?

solankirohan avatar Dec 18 '19 11:12 solankirohan