Axinom Mosaic Libraries
    Preparing search index...
    • 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: string | undefined

        JWT token without Bearer prefix

      • authConfig: string | AuthenticationConfig

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

      • OptionalauthType: "MANAGEMENT" | "END_USER"

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

      Returns Promise<ManagementAuthenticationContext | EndUserAuthenticationContext>