diff --git a/lib/onfleet.js b/lib/onfleet.js index 69e0602..d7a9555 100644 --- a/lib/onfleet.js +++ b/lib/onfleet.js @@ -27,6 +27,15 @@ resources.Webhooks = require('./resources/Webhooks'); */ class Onfleet { + get customHeaders() { + return this.headers; + } + + set customHeaders(headers) { + this.headers = headers; + this.api.headers = { ...this.api.headers, ...this.customHeaders }; + } + constructor( apiKey, userTimeout,