zendesk-node-sdk
zendesk-node-sdk copied to clipboard
module is stateful and cannot be reinitialized
I am trying to use this module in multiple places in an application, with two different accounts. Turns out, that's not possible because the module itself is stateful and thus once it has been used in one place, reinitializing it somewhere else does not result in a different account/configuration being used.
This is explained by line 49 of api/index.js:
api = api || {