Closed eljefedelrodeodeljefe closed 2 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?
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
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?