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
18 stars 6 forks source link

Add client middleware #261

Open jwulf opened 2 days ago

jwulf commented 2 days 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).