Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • SessionContainer

Index

Methods

  • attachToRequestResponse(reqResInfo: ReqResInfo, userContext?: Record<string, any>): void | Promise<void>
  • fetchAndSetClaim<T>(claim: SessionClaim<T>, userContext?: Record<string, any>): Promise<void>
  • getAccessToken(userContext?: Record<string, any>): string
  • getAccessTokenPayload(userContext?: Record<string, any>): any
  • getAllSessionTokensDangerously(): { accessAndFrontTokenUpdated: boolean; accessToken: string; antiCsrfToken: undefined | string; frontToken: string; refreshToken: undefined | string }
  • Returns { accessAndFrontTokenUpdated: boolean; accessToken: string; antiCsrfToken: undefined | string; frontToken: string; refreshToken: undefined | string }

    • accessAndFrontTokenUpdated: boolean
    • accessToken: string
    • antiCsrfToken: undefined | string
    • frontToken: string
    • refreshToken: undefined | string
  • getClaimValue<T>(claim: SessionClaim<T>, userContext?: Record<string, any>): Promise<undefined | T>
  • getExpiry(userContext?: Record<string, any>): Promise<number>
  • getHandle(userContext?: Record<string, any>): string
  • getRecipeUserId(userContext?: Record<string, any>): RecipeUserId
  • getSessionDataFromDatabase(userContext?: Record<string, any>): Promise<any>
  • getTenantId(userContext?: Record<string, any>): string
  • getTimeCreated(userContext?: Record<string, any>): Promise<number>
  • getUserId(userContext?: Record<string, any>): string
  • mergeIntoAccessTokenPayload(accessTokenPayloadUpdate: JSONObject, userContext?: Record<string, any>): Promise<void>
  • removeClaim(claim: SessionClaim<any>, userContext?: Record<string, any>): Promise<void>
  • revokeSession(userContext?: Record<string, any>): Promise<void>
  • setClaimValue<T>(claim: SessionClaim<T>, value: T, userContext?: Record<string, any>): Promise<void>
  • updateSessionDataInDatabase(newSessionData: any, userContext?: Record<string, any>): Promise<any>

Generated using TypeDoc