Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • RecipeInterface

Index

Methods

createNewSession

  • createNewSession(input: { accessTokenPayload?: any; res: any; sessionData?: any; userId: string }): Promise<SessionContainer>

getAccessTokenLifeTimeMS

  • getAccessTokenLifeTimeMS(): Promise<number>

getAllSessionHandlesForUser

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

getRefreshTokenLifeTimeMS

  • getRefreshTokenLifeTimeMS(): Promise<number>

getSession

getSessionInformation

  • Used to retrieve all session information for a given session handle. Can be used in place of:

    • getSessionData
    • getAccessTokenPayload

    Parameters

    • input: { sessionHandle: string }
      • sessionHandle: string

    Returns Promise<SessionInformation>

refreshSession

revokeAllSessionsForUser

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

revokeMultipleSessions

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

revokeSession

  • revokeSession(input: { sessionHandle: string }): Promise<boolean>

updateAccessTokenPayload

  • updateAccessTokenPayload(input: { newAccessTokenPayload: any; sessionHandle: string }): Promise<void>
  • Parameters

    • input: { newAccessTokenPayload: any; sessionHandle: string }
      • newAccessTokenPayload: any
      • sessionHandle: string

    Returns Promise<void>

updateSessionData

  • updateSessionData(input: { newSessionData: any; sessionHandle: string }): Promise<void>

Generated using TypeDoc