Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PrimitiveClaim<ValueType>

Type Parameters

  • ValueType

Hierarchy

Index

Constructors

  • new PrimitiveClaim<ValueType>(config: PrimitiveClaimConfig): 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: ((val: ValueType, maxAgeInSeconds?: undefined | number, id?: string) => SessionClaimValidator) } = ...

Type declaration

Methods

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

Generated using TypeDoc