Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AuthenticationSessionRedisRepository

Hierarchy

  • AuthenticationSessionRedisRepository

Implements

  • AuthenticationSessionRepository

Constructors

Methods

Constructors

constructor

Methods

delete

  • delete(username: string, deviceId: string): Promise<void>
  • Parameters

    • username: string
    • deviceId: string

    Returns Promise<void>

read

  • read(username: string, deviceId: string): Promise<undefined | null | AuthenticationSession>
  • Parameters

    • username: string
    • deviceId: string

    Returns Promise<undefined | null | AuthenticationSession>

upsert

  • upsert(username: string, deviceId: string, session: AuthenticationSession, ttl: number): Promise<void>
  • Parameters

    • username: string
    • deviceId: string
    • session: AuthenticationSession
    • ttl: number

    Returns Promise<void>