Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • default

Index

Constructors

constructor

Properties

Static Error

Error: typeof default = ...

Static init

init: (config?: TypeInput) => RecipeListFunction = ...

Type declaration

    • (config?: TypeInput): RecipeListFunction
    • Parameters

      • Optional config: TypeInput

      Returns RecipeListFunction

Methods

Static createJWT

  • createJWT(payload?: any, validitySeconds?: number): Promise<{ jwt: string; status: "OK" } | { status: "UNSUPPORTED_ALGORITHM_ERROR" }>
  • Parameters

    • Optional payload: any
    • Optional validitySeconds: number

    Returns Promise<{ jwt: string; status: "OK" } | { status: "UNSUPPORTED_ALGORITHM_ERROR" }>

Static createNewSession

  • createNewSession(res: any, userId: string, accessTokenPayload?: any, sessionData?: any): Promise<SessionContainer>

Static getAllSessionHandlesForUser

  • getAllSessionHandlesForUser(userId: string): Promise<string[]>

Static getJWKS

  • getJWKS(): Promise<{ keys: JsonWebKey[]; status: "OK" }>

Static getOpenIdDiscoveryConfiguration

  • getOpenIdDiscoveryConfiguration(): Promise<{ issuer: string; jwks_uri: string; status: "OK" }>

Static getSession

Static getSessionInformation

Static refreshSession

Static revokeAllSessionsForUser

  • revokeAllSessionsForUser(userId: string): Promise<string[]>

Static revokeMultipleSessions

  • revokeMultipleSessions(sessionHandles: string[]): Promise<string[]>

Static revokeSession

  • revokeSession(sessionHandle: string): Promise<boolean>

Static updateAccessTokenPayload

  • updateAccessTokenPayload(sessionHandle: string, newAccessTokenPayload: any): Promise<void>

Static updateSessionData

  • updateSessionData(sessionHandle: string, newSessionData: any): Promise<void>

Generated using TypeDoc