• Parses a JWT token to produce an ManagementAuthenticationContext or a ConsumeAuthenticationContext with subject information and error information, if some error occurred during token processing.

    Parameters

    • token: undefined | string

      JWT token without Bearer prefix

    • authConfig: string | AuthenticationConfig

      an object with ID/User service connection information or a path to a public key file.

    • Optional authType: "MANAGEMENT" | "END_USER"

      The type of Token that's being passed. Should be either MANAGEMENT or END_USER.

    Returns Promise<ManagementAuthenticationContext | EndUserAuthenticationContext>

Generated using TypeDoc