zendesk-node-sdk icon indicating copy to clipboard operation
zendesk-node-sdk copied to clipboard

module is stateful and cannot be reinitialized

Open Pwuts opened this issue 5 years ago • 0 comments

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 || {

Pwuts avatar Apr 04 '20 17:04 Pwuts