Skip to content
This repository has been archived by the owner on Apr 1, 2019. It is now read-only.

Expired session and refreshing / CognitoState #43

Open
davegravy opened this issue Feb 9, 2018 · 0 comments
Open

Expired session and refreshing / CognitoState #43

davegravy opened this issue Feb 9, 2018 · 0 comments

Comments

@davegravy
Copy link

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant