pipedrive / client-nodejs

Pipedrive API client for NodeJS
MIT License
205 stars 82 forks source link

[question] client instantiation #176

Closed eljefedelrodeodeljefe closed 2 years ago

eljefedelrodeodeljefe commented 3 years ago

Do I assume correctly that all auth configs are singletons and hence: an application that manages multiple users / pipedrive installations needs to basically deep clone a lib object to not have side effects on the instances state?

JSandmark commented 3 years ago

I am also looking into this scenario as we run multiple Pipedrive apps backend with OAuth for multiple users and from some initial testing this lib does seem to be intended to work as a singleton. Does anyone use this lib for that scenario or do you use a custom API integration?

JSandmark commented 2 years ago

This seems to be mentioned as fixed in the changelog so maybe this issue should be closed. We are already using a custom API-implementation but this feature now seems to be supported. https://github.com/pipedrive/client-nodejs/blob/master/CHANGELOG.md#1200