Class

Session

Session(options)

A class representing a session.
Constructor

# new Session(options)

Parameters:
Name Type Description
options SessionOptions The options that can be used

View Source lib/Session.ts, line 11

Classes

Session

Methods

# get() → {SessionDetail}

Retrieves the session details.

View Source lib/Session.ts, line 93

The session details.

# isAuthFlowCompleted() → {boolean}

Checks if the auth flow is completed. The value resets after the next login attempt.

View Source lib/Session.ts, line 118

Returns true if the authentication flow is completed, false otherwise
boolean

# isValid() → {boolean}

Checks if the user is logged in.

View Source lib/Session.ts, line 101

true if the user is logged in, false otherwise.
boolean