Skip to main content

DatabaseInterfaceSessions

Hierarchy

Index

Methods

createSession

  • createSession(userId: string, token: string, connection: ConnectionInformations, extraData?: object): Promise<string>
  • Parameters

    Returns Promise<string>

findSessionById

  • findSessionById(sessionId: string): Promise<null | Session>
  • Parameters

    • sessionId: string

    Returns Promise<null | Session>

findSessionByToken

  • findSessionByToken(token: string): Promise<null | Session>
  • Parameters

    • token: string

    Returns Promise<null | Session>

invalidateAllSessions

  • invalidateAllSessions(userId: string, excludedSessionIds?: string[]): Promise<void>
  • Parameters

    • userId: string
    • optionalexcludedSessionIds: string[]

    Returns Promise<void>

invalidateSession

  • invalidateSession(sessionId: string): Promise<void>
  • Parameters

    • sessionId: string

    Returns Promise<void>

updateSession