Skip to content

Ensure currentSession is valid and not expired #37

Description

@retog

The session returned by currentSession may or may no longer be valid. In the latter case web requests will return 401. It would be handy to have a session.isValid() function that returns true if the session is still valid and false otherwise.

Activity

  1. changed the title [-]Add function to check if a sessionis still valid[/-] [+]Ensure currentSession is valid and not expired[/+] on Aug 29, 2018
  2. RubenVerborgh commented on Aug 29, 2018

    @RubenVerborgh
    Contributor

    I'd suggest that we instead only return a valid session. We depend on token renewal here, however.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions