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

Class SessionClaimValidator Abstract

Hierarchy

  • SessionClaimValidator

Index

Constructors

Properties

Methods

Constructors

  • Parameters

    • id: string

    Returns SessionClaimValidator

Properties

id: string

Methods

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

    Parameters

    • userContext: any

    Returns Promise<void>

  • shouldRefresh(accessTokenPayload: any, userContext: any): boolean | Promise<boolean>
  • Decides if we need to refresh the claim value before checking the payload with validate. E.g.: if the information in the payload is expired, or is not sufficient for this validator.

    Parameters

    • accessTokenPayload: any
    • userContext: any

    Returns boolean | Promise<boolean>

  • Decides if the claim is valid based on the accessTokenPayload object (and not checking DB or anything else)

    Parameters

    • accessTokenPayload: any
    • userContext: any

    Returns ClaimValidationResult | Promise<ClaimValidationResult>

Generated using TypeDoc