Options
All
  • Public
  • Public/Protected
  • All
Menu

Provide Identity information for the user that triggered the request

Hierarchy

  • UserContext

Index

Accessors

Methods

Accessors

claims

  • get claims(): any
  • JSON object with the claims from the JWT information in the request

    Returns any

roles

  • get roles(): string[]
  • List of roles in the JWT metadata

    Returns string[]

Methods

is

  • is(role: string): boolean
  • Checks whether a role is included in the JWT metadata.

    Parameters

    • role: string

    Returns boolean

Generated using TypeDoc