Options
All
  • Public
  • Public/Protected
  • All
Menu

The Session class defines the current user session. It stores a reference to the current authenticated user, and provides methods to log in/out.

Hierarchy

  • Session

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Session(user: null | User, csrfToken: string): Session

Properties

csrfToken

csrfToken: string

The CSRF token.

user

user: null | User

The current authenticated user.

Methods

login

logout

  • logout(): void

Generated using TypeDoc version 0.22.10