Object - jwt : OutboundJwtAuthProvider

Represents outbound JWT authenticator.

Constructor

__init

(InferredJwtIssuerConfig? jwtIssuerConfig)

Methods

Fields

generateToken

()

returns string | error

Generate token for JWT authentication.

  • Return Type

    (string | error)
  • Generated token or error if an error occurred during the JWT issuing or validation

inspect

(map data)

returns string | error | ()

Inspect the incoming data and generate the token for JWT authentication.

Parameters

  • data map
  • Map of data which is extracted from the HTTP response

  • Return Type

    (string | error | ())
  • String token, or error occurred when generating token or () if nothing to be returned