Options
All
  • Public
  • Public/Protected
  • All
Menu

These are the SDK reference docs. If you’re looking for docs to implement SuperTokens, you might want to check out the User Guides

We include "Class" in the class name, because it makes it easier to import/use the right thing (the instance exported by the recipe) instead of this.

Hierarchy

Index

Constructors

constructor

Properties

Readonly defaultMaxAgeInSeconds

defaultMaxAgeInSeconds: undefined | number

Readonly id

id: string

Readonly refresh

refresh: (userContext: any) => Promise<void>

Type declaration

    • (userContext: any): Promise<void>
    • Makes an API call that will refresh the claim in the token.

      Parameters

      • userContext: any

      Returns Promise<void>

validators

validators: { hasValue: any } & BooleanValidators & { isVerified: any }

Methods

getLastFetchedTime

  • getLastFetchedTime(payload: any, _userContext?: any): undefined | number
  • Parameters

    • payload: any
    • Optional _userContext: any

    Returns undefined | number

getValueFromPayload

  • getValueFromPayload(payload: any, _userContext?: any): boolean
  • Parameters

    • payload: any
    • Optional _userContext: any

    Returns boolean

Generated using TypeDoc