# Node-auth0: safe to use singleton ManagementClient?

**URL:** <https://community.auth0.com/t/node-auth0-safe-to-use-singleton-managementclient/76855>\
**Category:** Get Help\
**Tags:** nodejs, node-auth0, node, management-api\
**Created:** [January 22, 2022, 7:22pm UTC](https://community.auth0.com/t/node-auth0-safe-to-use-singleton-managementclient/76855 "2022-01-22T19:22:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ken2](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ken2/32/9364_2.png) [@ken2](https://community.auth0.com/u/ken2)\
**Post date:** [January 22, 2022, 7:22pm UTC](https://community.auth0.com/t/node-auth0-safe-to-use-singleton-managementclient/76855/1 "2022-01-22T19:22:45Z")

</div>

In auth0-node, used in an express web-server, is it safe to make a single ManagementClient (Non Interactive Client ), and then keep that around in a global variable, or should we be creating a new ManagementClient object for each request?  
Thanks.

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [January 24, 2022, 8:00pm UTC](https://community.auth0.com/t/node-auth0-safe-to-use-singleton-managementclient/76855/3 "2022-01-24T20:00:22Z")

</div>

Hi @ken2,

Welcome to the Auth0 Community!

Yes, it is safe to initialize a single ManagementClient class object to call different methods. That should not be a problem and is encouraged.

Please let me know if you need further clarification or have any questions.

Thanks!

---

<div class="post-metadata">

**Author:** ![ken2](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ken2/32/9364_2.png) [@ken2](https://community.auth0.com/u/ken2)\
**Post date:** [January 25, 2022, 1:45am UTC](https://community.auth0.com/t/node-auth0-safe-to-use-singleton-managementclient/76855/4 "2022-01-25T01:45:17Z")

</div>

Thank you for the answer!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [February 9, 2022, 1:46am UTC](https://community.auth0.com/t/node-auth0-safe-to-use-singleton-managementclient/76855/5 "2022-02-09T01:46:12Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
