# Grant type 'refresh\_token' not allowed for the client

**URL:** <https://community.auth0.com/t/grant-type-refresh-token-not-allowed-for-the-client/152144>\
**Category:** Get Help\
**Tags:** client-grants, management-api\
**Created:** [November 22, 2024, 6:00am UTC](https://community.auth0.com/t/grant-type-refresh-token-not-allowed-for-the-client/152144 "2024-11-22T06:00:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tilaka](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tilaka/32/62439_2.png) [@tilaka](https://community.auth0.com/u/tilaka)\
**Post date:** [November 22, 2024, 6:00am UTC](https://community.auth0.com/t/grant-type-refresh-token-not-allowed-for-the-client/152144/1 "2024-11-22T06:00:47Z")

</div>

I am seeing the below error for the post request:

curl --location --request POST ‘[https://xyxyx-cloud-account.auth0.com/oauth/token](https://xyxyx-cloud-account.auth0.com/oauth/token)’ \

–header ‘Content-Type: application/json’ \

–data-raw '{

“grant\_type”: “refresh\_token”,

“refresh\_token”: “”,

“client\_id”: “”

}

’

Response:

{

“error”: “unauthorized\_client”,

“error\_description”: “Grant type ‘refresh\_token’ not allowed for the client.”,

“error\_uri”: [Application Grant Types](https://auth0.com/docs/clients/client-grant-types)

}

---

<div class="post-metadata">

**Author:** ![valerian](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/valerian/32/62115_2.png) [@valerian](https://community.auth0.com/u/valerian)\
**Post date:** [November 22, 2024, 3:22pm UTC](https://community.auth0.com/t/grant-type-refresh-token-not-allowed-for-the-client/152144/3 "2024-11-22T15:22:07Z")

</div>

Hi @tilaka,

Thanks for posting! Welcome to the Auth0 Community.

It’s possible that this issue is occurring because the **Client Credentials Grant Type** isn’t enabled. You can enable the client Credentials Grant Type by going to the application’s setting Tab, scrolling to the bottom of the page, toggling Advanced Settings, choosing the Grant Types tab, and checking the box for the Client Credentials Grant Type. Make sure to Save the Changes.

Once you’ve made that change, try again and see if everything works as expected. If not, feel free to send me your tenant name via DM, and I’ll take a closer look for you.

Thanks!  
Valerian

---

<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:** [December 18, 2024, 7:22pm UTC](https://community.auth0.com/t/grant-type-refresh-token-not-allowed-for-the-client/152144/5 "2024-12-18T19:22:35Z")

</div>

Hi @tilaka,

The error message indicates that the `refresh_token` grant type is not allowed for your client.

Please refer to [this post](https://community.auth0.com/t/grant-type-refresh-token-not-allowed-for-the-client/7549/3) which explains to update your application using the Management API [Update a client endpoint](https://auth0.com/docs/api/management/v2/clients/patch-clients-by-id) to set the `is_first_party: true`.

Thanks,  
Rueben

---

<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:** [January 1, 2025, 7:23pm UTC](https://community.auth0.com/t/grant-type-refresh-token-not-allowed-for-the-client/152144/6 "2025-01-01T19:23:01Z")

</div>

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