Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PrimitiveClaim<ValueType>

Type Parameters

  • ValueType

Hierarchy

Index

Constructors

  • Type Parameters

    • ValueType

    Parameters

    Returns PrimitiveClaim<ValueType>

Properties

defaultMaxAgeInSeconds: undefined | number
id: string
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: { hasValue: any }

Type declaration

  • hasValue:function
    • Parameters

      • val: ValueType
      • Optional maxAgeInSeconds: number
      • Optional id: string

      Returns SessionClaimValidator

Methods

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

    • payload: any
    • Optional _userContext: any

    Returns undefined | number

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

    • payload: any
    • Optional _userContext: any

    Returns ValueType

Generated using TypeDoc