aws-cognito-react
aws-cognito-react copied to clipboard
Token expiration
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.
Any update on this?