Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SessionClaimValidator Abstract

Hierarchy

  • SessionClaimValidator

Index

Constructors

Properties

Methods

Constructors

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>

Generated using TypeDoc