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 has been archived by the owner on Apr 1, 2019. It is now read-only.
After 1 hour (configurable in user pool) tokens expire yet CognitoState.LOGGED_IN remains true.
This necessitates complicated logic in the app, i.e checking cognito.user.signInUserSession.idToken.payload.exp at each PrivateRoute change and calls to private APIs, and subsequently attempting a refresh if the checks fail.
Would it be possible for react-cognito to auto-refresh tokens and update CognitoState if the refresh fails?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
After 1 hour (configurable in user pool) tokens expire yet
CognitoState.LOGGED_IN
remains true.This necessitates complicated logic in the app, i.e checking
cognito.user.signInUserSession.idToken.payload.exp
at each PrivateRoute change and calls to private APIs, and subsequently attempting a refresh if the checks fail.Would it be possible for react-cognito to auto-refresh tokens and update CognitoState if the refresh fails?
The text was updated successfully, but these errors were encountered: