solid-auth-client icon indicating copy to clipboard operation
solid-auth-client copied to clipboard

Ensure currentSession is valid and not expired

Open retog opened this issue 8 years ago • 1 comments

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.

retog avatar Oct 09 '17 10:10 retog

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

RubenVerborgh avatar Aug 29 '18 15:08 RubenVerborgh