Options
All
  • Public
  • Public/Protected
  • All
Menu

JWT claims that were part of the bearer token with this request.

Hierarchy

  • JwtClaims

Index

Properties

metadata: Metadata

The metadata backing this JWT claims object.

Constructors

  • This exposes JWT claims that were extracted from the bearer token.

    Parameters

    • metadata: Metadata

      The metadata that the JWT claims come from

    Returns JwtClaims

Accessors

  • get issuer(): undefined | string
  • get subject(): undefined | string
  • get audience(): undefined | string
  • get expirationTime(): undefined | Date
  • get notBefore(): undefined | Date
  • get issuedAt(): undefined | Date
  • get jwtId(): undefined | string

Methods

  • getString(name: string): undefined | string
  • Get the string claim with the given name.

    Parameters

    • name: string

      The name of the claim

    Returns undefined | string

  • getNumber(name: string): undefined | number
  • Get the number claim with the given name.

    Parameters

    • name: string

      The name of the claim

    Returns undefined | number

  • getNumericDate(name: string): undefined | Date
  • Get the numeric date claim with the given name.

    Numeric dates are expressed as a number of seconds since epoch, as described in RFC 7519 section 2.

    see

    RFC 7519 section 2

    Parameters

    • name: string

      The name of the claim

    Returns undefined | Date

  • getBoolean(name: string): undefined | boolean
  • Get the boolean claim with the given name.

    Parameters

    • name: string

      The name of the claim

    Returns undefined | boolean

  • getObject(name: string): any
  • Get the object claim with the given name.

    Parameters

    • name: string

      The name of the claim

    Returns any

  • getStringArray(name: string): undefined | string[]
  • Get the string array claim with the given name.

    Parameters

    • name: string

      The name of the claim

    Returns undefined | string[]

  • getNumberArray(name: string): undefined | number[]
  • Get the number array claim with the given name.

    Parameters

    • name: string

      The name of the claim

    Returns undefined | number[]

  • getBooleanArray(name: string): undefined | boolean[]
  • Get the boolean array claim with the given name.

    Parameters

    • name: string

      The name of the claim

    Returns undefined | boolean[]

  • getObjectArray(name: string): undefined | any[]
  • Get the object array claim with the given name.

    Parameters

    • name: string

      The name of the claim

    Returns undefined | any[]

  • getNumericDateArray(name: string): undefined | Date[]
  • Get the numeric date array claim with the given name.

    Numeric dates are expressed as a number of seconds since epoch, as described in RFC 7519 section 2.

    see

    RFC 7519 section 2

    Parameters

    • name: string

      The name of the claim

    Returns undefined | Date[]

Generated using TypeDoc