Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Session

Implements

Index

Constructors

constructor

  • new Session(token: string, refresh_token: string, created: boolean): Session

Properties

Readonly created

created: boolean

Readonly created_at

created_at: number

Optional expires_at

expires_at?: number

Optional refresh_expires_at

refresh_expires_at?: number

refresh_token

refresh_token: string

token

token: string

Optional user_id

user_id?: string

Optional username

username?: string

Optional vars

vars?: object

Methods

isexpired

  • isexpired(currenttime: number): boolean

isrefreshexpired

  • isrefreshexpired(currenttime: number): boolean

update

  • update(token: string, refreshToken: string): void
  • Parameters

    • token: string
    • refreshToken: string

    Returns void

Static restore

  • restore(token: string, refreshToken: string): Session

Generated using TypeDoc