# Is it able to get management API access token and call management APIs via a React Native mobile application?

**URL:** <https://community.auth0.com/t/is-it-able-to-get-management-api-access-token-and-call-management-apis-via-a-react-native-mobile-application/79255>\
**Category:** Get Help\
**Tags:** api\
**Created:** [March 4, 2022, 2:34am UTC](https://community.auth0.com/t/is-it-able-to-get-management-api-access-token-and-call-management-apis-via-a-react-native-mobile-application/79255 "2022-03-04T02:34:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![taojiez](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/taojiez/32/34687_2.png) [@taojiez](https://community.auth0.com/u/taojiez)\
**Post date:** [March 4, 2022, 2:34am UTC](https://community.auth0.com/t/is-it-able-to-get-management-api-access-token-and-call-management-apis-via-a-react-native-mobile-application/79255/1 "2022-03-04T02:34:39Z")

</div>

Hello, we plan to use Auth0 React Native SDK to implement the user login process for a mobile application. The login process, authentication and authorization seem to go well.

Now we are considering whether we can call Auth0 management APIs to modify user’s profile, or send extra verification emails to them. There seems no management API SDK for React Native. After reading some [docs](https://auth0.com/docs/secure/tokens/access-tokens/management-api-access-tokens) we think we should get management API access token first then use it to call APIs, and we’ve set up a machine-to-machine application for getting the access token.

But we are getting 401 responses when trying to get management API access tokens. Actually I start to think whether a mobile application is able to get a management API access token since it seems not to be secure enough, and maybe there’s a reason why there’s no no management API SDK for React Native, it looks only server side applications are supported.

So I’m bringing this topic here to ask for some help. Hope someone can tell me whether we can call Auth0 management APIs via a React Native mobile application, if the answer is YES, what are the correct steps to do that. Thanks a lot!

---

<div class="post-metadata">

**Author:** ![john.gateley](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/john.gateley/32/10879_2.png) [@john.gateley](https://community.auth0.com/u/john.gateley)\
**Post date:** [March 4, 2022, 2:02pm UTC](https://community.auth0.com/t/is-it-able-to-get-management-api-access-token-and-call-management-apis-via-a-react-native-mobile-application/79255/2 "2022-03-04T14:02:50Z")

</div>

Hi @taojiez

Do NOT set up a client credentials flow in your Native application. With Client Credentials, you must store the client ID and secret in the native app, and this is not secure.

Instead, set up an API that the native app can call, and the API will use the client credentials grant. The native app should use an access token when calling the API.

John

---

<div class="post-metadata">

**Author:** ![taojiez](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/taojiez/32/34687_2.png) [@taojiez](https://community.auth0.com/u/taojiez)\
**Post date:** [March 15, 2022, 5:17am UTC](https://community.auth0.com/t/is-it-able-to-get-management-api-access-token-and-call-management-apis-via-a-react-native-mobile-application/79255/3 "2022-03-15T05:17:52Z")

</div>

Thanks @john.gateley  
Got your idea and thanks for the detailed explanation. I think you’ve cleared my concern and question.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [March 15, 2022, 11:32am UTC](https://community.auth0.com/t/is-it-able-to-get-management-api-access-token-and-call-management-apis-via-a-react-native-mobile-application/79255/4 "2022-03-15T11:32:46Z")

</div>

We are here for you!

---

<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:** [July 13, 2023, 10:02pm UTC](https://community.auth0.com/t/is-it-able-to-get-management-api-access-token-and-call-management-apis-via-a-react-native-mobile-application/79255/5 "2023-07-13T22:02:36Z")

</div>

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