Options
All
  • Public
  • Public/Protected
  • All
Menu

Type Parameters

  • T

Hierarchy

  • PrimitiveClaim<T>
    • PrimitiveClaim

Index

Constructors

  • new PrimitiveClaim<T>(config: PrimitiveClaimConfig & { onFailureRedirection?: ValidationFailureCallback; showAccessDeniedOnFailure?: boolean }): PrimitiveClaim<T>
  • Type Parameters

    • T

    Parameters

    • config: PrimitiveClaimConfig & { onFailureRedirection?: ValidationFailureCallback; showAccessDeniedOnFailure?: boolean }

    Returns PrimitiveClaim<T>

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): T
  • Parameters

    • payload: any
    • Optional _userContext: any

    Returns T

Generated using TypeDoc