You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 8, 2021. It is now read-only.
The maximum time Cognito allows a session to remain valid is 1 hour. I haven't tested this with your example app, but in my app which is based on it after 1 hour CognitoState.LOGGED_IN remains true while the stored tokens are expired (Any call to an API with the idToken in auth header will respond 401) and the session should be invalidated.
I've posted a SO question here on the best approach to handling this.
Ideally react-cognito would internally factory expiry into CognitoState.