# 401 error (Unauthorized) on Bubble

**URL:** <https://community.auth0.com/t/401-error-unauthorized-on-bubble/114107>\
**Category:** Get Help\
**Tags:** grants, management-api\
**Created:** [August 21, 2023, 1:56pm UTC](https://community.auth0.com/t/401-error-unauthorized-on-bubble/114107 "2023-08-21T13:56:48Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![theodore](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/theodore/32/26949_2.png) [@theodore](https://community.auth0.com/u/theodore)\
**Post date:** [August 21, 2023, 1:56pm UTC](https://community.auth0.com/t/401-error-unauthorized-on-bubble/114107/1 "2023-08-21T13:56:48Z")

</div>

Hi!

I’ve successfully integrated Auth0 with Bubble and the Auth0 login screen is up and running.

Now, I’m aiming to add buttons on my app (Google and LinkedIn) to enable users to easily log in or sign up using these single sign-on options.

However, I’ve encountered a 401 error, which I suspect might be due to the unchecked client credentials, although I’m not entirely certain.

 ![Capture d’écran 2023-08-21 à 15.54.11](https://global.discourse-cdn.com/auth0/original/3X/6/c/6c53b0ac4acb4f24628b0a341142f150392e28b5.png)

I’d be incredibly grateful if someone could offer assistance, as I’ve been grappling with this issue for several days.

Thank you!

---

<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:** [August 22, 2023, 5:46am UTC](https://community.auth0.com/t/401-error-unauthorized-on-bubble/114107/3 "2023-08-22T05:46:07Z")

</div>

Hi @theodore,

I have just checked your tenant logs and found that your Application is trying to use the Client Credentials grant, but it is not allowed for the client.

 ![image](https://global.discourse-cdn.com/auth0/original/3X/5/4/541bbdf5286a28ec4fc840ff18c89e62cdb2ff61.png)

This is not allowed for Single Page Applications. The client credentials flow is only for Regular Web Apps and Machine-to-Machine applications.

> **[Call Your API Using the Client Credentials Flow](https://auth0.com/docs/get-started/authentication-and-authorization-flow/call-your-api-using-the-client-credentials-flow)**
>
> Learn how to call your API from a machine-to-machine (M2M) application using the Client Credentials Flow.

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![theodore](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/theodore/32/26949_2.png) [@theodore](https://community.auth0.com/u/theodore)\
**Post date:** [August 22, 2023, 8:38am UTC](https://community.auth0.com/t/401-error-unauthorized-on-bubble/114107/4 "2023-08-22T08:38:08Z")

</div>

> [@rueben.tiow](#):
>
> This is not allowed for Single Page Applications. The client credentials flow is only for Regular Web Apps and Machine-to-Machine applications.
> 
> [Call Your API Using the Client Credentials Flow](https://auth0.com/docs/get-started/authentication-and-authorization-flow/call-your-api-using-the-client-credentials-flow)

Thank you!

I changed to Regular Web Apps and I am still experiencing the same error.

---

<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:** [August 22, 2023, 4:29pm UTC](https://community.auth0.com/t/401-error-unauthorized-on-bubble/114107/5 "2023-08-22T16:29:34Z")

</div>

Hi @theodore,

Did you make sure that you changed your **Token Endpoint Authentication Method** to POST?

 ![image](https://global.discourse-cdn.com/auth0/original/3X/6/d/6dabb4e47707edd9ca5318da11556c4a924aec57.png)

It seems like you may have missed this step.

Please let me know how this goes for you.

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![theodore](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/theodore/32/26949_2.png) [@theodore](https://community.auth0.com/u/theodore)\
**Post date:** [August 22, 2023, 6:06pm UTC](https://community.auth0.com/t/401-error-unauthorized-on-bubble/114107/6 "2023-08-22T18:06:10Z")

</div>

Hi Ruben,

I just did what you asked and I am still experiencing the exact same thing.

---

<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:** [August 23, 2023, 5:56pm UTC](https://community.auth0.com/t/401-error-unauthorized-on-bubble/114107/7 "2023-08-23T17:56:41Z")

</div>

Hi @theodore,

Thanks for following up.

I do not see any 401 Unauthorized errors on your tenant logs.

Could you pleae provide me a log ID of the failed login event?

Or could you please [capture the login events in a HAR file](https://auth0.com/docs/troubleshoot/troubleshooting-tools/generate-and-analyze-har-files) and send them to me as a direct message?

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![theodore](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/theodore/32/26949_2.png) [@theodore](https://community.auth0.com/u/theodore)\
**Post date:** [August 28, 2023, 5:55pm UTC](https://community.auth0.com/t/401-error-unauthorized-on-bubble/114107/8 "2023-08-28T17:55:24Z")

</div>

Hi Ruben,

I don’t see any failed event in my logs!

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:** [August 31, 2023, 4:55pm UTC](https://community.auth0.com/t/401-error-unauthorized-on-bubble/114107/9 "2023-08-31T16:55:05Z")

</div>

Hi @theodore,

Thanks for following up.

To investigate this further, could you please [capture the login events in a HAR file](https://auth0.com/docs/troubleshoot/troubleshooting-tools/generate-and-analyze-har-files) and send them to me as a direct message?

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:** [September 14, 2023, 4:55pm UTC](https://community.auth0.com/t/401-error-unauthorized-on-bubble/114107/10 "2023-09-14T16:55:24Z")

</div>

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