A session authenticated for a user with Satori server.

Hierarchy

  • ISession

Implemented by

Properties

created_at: number

The UNIX timestamp when this session was created.

expires_at?: number

The UNIX timestamp when this session will expire.

refresh_expires_at?: number

The UNIX timestamp when the refresh token will expire.

refresh_token: string

Refresh token that can be used for session token renewal.

token: string

The authorization token used to construct this session.

user_id?: string

The ID of the user who owns this session.

vars?: object

Any custom properties associated with this session.

Methods

  • If the session has expired.

    Parameters

    • currenttime: number

    Returns boolean

  • If the refresh token has expired.

    Parameters

    • currenttime: number

    Returns boolean

Generated using TypeDoc