# Unable to use grant:type : "client\_credentials"

**URL:** <https://community.auth0.com/t/unable-to-use-grant-type-client-credentials/100541>\
**Category:** Get Help\
**Tags:** clients, management-api\
**Created:** [February 15, 2023, 10:23am UTC](https://community.auth0.com/t/unable-to-use-grant-type-client-credentials/100541 "2023-02-15T10:23:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![souravpanda.dev](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/souravpanda.dev/32/44532_2.png) [@souravpanda.dev](https://community.auth0.com/u/souravpanda.dev)\
**Post date:** [February 15, 2023, 10:23am UTC](https://community.auth0.com/t/unable-to-use-grant-type-client-credentials/100541/1 "2023-02-15T10:23:24Z")

</div>

I’ve trying to get the access token for my SPA, for which I’ve to use the grant type as client\_credentials, but its unavailable for an SPA. Tried using the token\_endpoint\_auth\_method, but it still won’t work. Please help me out with it.

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [February 16, 2023, 12:16am UTC](https://community.auth0.com/t/unable-to-use-grant-type-client-credentials/100541/3 "2023-02-16T00:16:53Z")

</div>

Hey there @souravpanda.dev!

Are you able to elaborate on your specific use case a bit? The client credentials grant is unavailable for a SPA as it’s intended to be used in machine to machine scenarios. A SPA is a [public application](https://auth0.com/docs/get-started/applications/confidential-and-public-applications) and should use a redirect flow when possible. The [ROPG](https://auth0.com/docs/get-started/authentication-and-authorization-flow/resource-owner-password-flow) (password) grant is discouraged but can be utilized in certain scenarios. The following doc should be useful in determining which OAuth flow to use:

> **[Which OAuth 2.0 Flow Should I Use?](https://auth0.com/docs/get-started/authentication-and-authorization-flow/which-oauth-2-0-flow-should-i-use#is-the-client-a-single-page-app-)**
>
> Learn how to identify the proper OAuth 2.0 flow for your use case.

Hope this helps!

---

<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:** [March 2, 2023, 12:17am UTC](https://community.auth0.com/t/unable-to-use-grant-type-client-credentials/100541/4 "2023-03-02T00:17:34Z")

</div>

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