# How to connect to management api in React native

**URL:** <https://community.auth0.com/t/how-to-connect-to-management-api-in-react-native/186830>\
**Category:** Get Help\
**Tags:** users, management-api\
**Created:** [May 16, 2025, 7:07pm UTC](https://community.auth0.com/t/how-to-connect-to-management-api-in-react-native/186830 "2025-05-16T19:07:45Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![micahcb](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/micahcb/32/72151_2.png) [@micahcb](https://community.auth0.com/u/micahcb)\
**Post date:** [May 16, 2025, 7:07pm UTC](https://community.auth0.com/t/how-to-connect-to-management-api-in-react-native/186830/1 "2025-05-16T19:07:45Z")

</div>

I am using a auth0 react native package in an expo app and am wondering what the best way to connect to the management API in order to read a users app\_metadata is? Any advice helps there does not seem to be much documentation on this.

---

<div class="post-metadata">

**Author:** ![vlad.murarasu](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vlad.murarasu/32/72793_2.png) [@vlad.murarasu](https://community.auth0.com/u/vlad.murarasu)\
**Post date:** [May 19, 2025, 11:17am UTC](https://community.auth0.com/t/how-to-connect-to-management-api-in-react-native/186830/3 "2025-05-19T11:17:59Z")

</div>

Hi @micahcb,

The `auth0-react` package contains a `ManagementClient` class for calling the Management API’s endpoints.

> **[ManagementClient | auth0](https://auth0.github.io/node-auth0/classes/management.ManagementClient.html)**
>
> Documentation for auth0

If you have any other questions, feel free to reach out.

Have a good one,  
Vlad

---

<div class="post-metadata">

**Author:** ![micahcb](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/micahcb/32/72151_2.png) [@micahcb](https://community.auth0.com/u/micahcb)\
**Post date:** [May 19, 2025, 7:02pm UTC](https://community.auth0.com/t/how-to-connect-to-management-api-in-react-native/186830/4 "2025-05-19T19:02:26Z")

</div>

> [@vlad.murarasu](#):
>
> The `auth0-react` package contains a `ManagementClient` class for calling the Management API’s endpoints.
> 
> [ManagementClient | auth0](https://auth0.github.io/node-auth0/classes/management.ManagementClient.html)

Hi Vlad Looks like I am getting this error  
{“error”:“unauthorized\_client”,“error\_description”:“Grant type ‘client\_credentials’ not allowed for the client.”,“error\_uri”:“[https://auth0.com/docs/clients/client-grant-types](https://auth0.com/docs/clients/client-grant-types)”}

Is it not allowed for react native apps? If so how could I retrieve and update users app\_metadata

---

<div class="post-metadata">

**Author:** ![vlad.murarasu](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vlad.murarasu/32/72793_2.png) [@vlad.murarasu](https://community.auth0.com/u/vlad.murarasu)\
**Post date:** [May 20, 2025, 12:11pm UTC](https://community.auth0.com/t/how-to-connect-to-management-api-in-react-native/186830/5 "2025-05-20T12:11:15Z")

</div>

Hi again,

This community post should be of help:

> [@Error: Grant type client\_credentials not allowed for the client](https://community.auth0.com/t/error-grant-type-client-credentials-not-allowed-for-the-client/7606/2):
>
> In order to provide greater control over what flows are allowed for an application, some grant types are now disabled by default to allow application owners to opt-in should they wish to. You can enable the grant types from the dashboard - instructions and more information available in the following doc:

If you have any difficulties, feel free to reach out.

Have a good one,  
Vlad

---

<div class="post-metadata">

**Author:** ![vlad.murarasu](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vlad.murarasu/32/72793_2.png) [@vlad.murarasu](https://community.auth0.com/u/vlad.murarasu)\
**Post date:** [May 20, 2025, 12:16pm UTC](https://community.auth0.com/t/how-to-connect-to-management-api-in-react-native/186830/6 "2025-05-20T12:16:26Z")

</div>

Go to your Auth0 Dashboard, into your app settings, and scroll down until you find Advanced Settings and select the Client Credentials grant type.

 ![Screenshot 2025-05-20 at 3.13.52 PM](https://global.discourse-cdn.com/auth0/original/3X/7/3/73343966e11a7bd0a0a83f4b365cc1cf3c6d6980.png)

---

<div class="post-metadata">

**Author:** ![micahcb](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/micahcb/32/72151_2.png) [@micahcb](https://community.auth0.com/u/micahcb)\
**Post date:** [May 20, 2025, 2:19pm UTC](https://community.auth0.com/t/how-to-connect-to-management-api-in-react-native/186830/7 "2025-05-20T14:19:58Z")

</div>

![Screenshot 2025-05-20 at 10.19.36 AM](https://global.discourse-cdn.com/auth0/original/3X/9/3/939f6964660649d3913410103e933da7d72ec4ab.png)  
Mine looks like this, which seems to be an issue with it being a native app

---

<div class="post-metadata">

**Author:** ![vlad.murarasu](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vlad.murarasu/32/72793_2.png) [@vlad.murarasu](https://community.auth0.com/u/vlad.murarasu)\
**Post date:** [May 20, 2025, 3:19pm UTC](https://community.auth0.com/t/how-to-connect-to-management-api-in-react-native/186830/8 "2025-05-20T15:19:50Z")

</div>

Hi again @micahcb,

SPA and native applications must be set to `confidential` before setting the Client Credential grant.

> **[Application Grant Types](https://auth0.com/docs/get-started/applications/application-grant-types#public-applications)**
>
> Describes grant types and how they relate to applications.

Use the [Update a client](https://auth0.com/docs/api/management/v2#!/Clients/patch_clients_by_id) endpoint of the Auth0 Management API to set the `token_endpoint_auth_method` to `client_secret_post,` `client_secret_basic`, or `private_key_jwt`.

If you have any other questions, feel free to reach out.

Have a good one,  
Vlad

---

<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:** [June 3, 2025, 3:20pm UTC](https://community.auth0.com/t/how-to-connect-to-management-api-in-react-native/186830/9 "2025-06-03T15:20:41Z")

</div>

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