Base session class.

T User type.

Type Parameters

  • T = any

Constructors

Properties

id: string

ID of the session.

Methods

  • Sets the user's data to the session.

    Parameters

    • user: T

      User data.

    Returns void