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

Expired session and refreshing / CognitoState  #43

@davegravy

Description

@davegravy

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载