camunda / camunda-8-js-sdk

The Camunda 8 JavaScript SDK for Node.js
https://camunda.github.io/camunda-8-js-sdk/
Apache License 2.0
19 stars 6 forks source link

Add client middleware #261

Closed jwulf closed 1 month ago

jwulf commented 2 months ago

Extend the constructor configuration parameter signature to allow middleware functions to be passed in, then add them to the Got beforeRequest Hooks.

This will allow users to do custom header setting, including completely replacing the authorization header (this could be one way of addressing https://github.com/camunda/camunda-8-js-sdk/issues/246).