Skip to content
This repository was archived by the owner on Mar 8, 2021. It is now read-only.
This repository was archived by the owner on Mar 8, 2021. It is now read-only.

Handling expired session #5

@davegravy

Description

@davegravy

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.

Regards,

David

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