# Why am I getting Failed Exchange 401

**URL:** <https://community.auth0.com/t/why-am-i-getting-failed-exchange-401/141343>\
**Category:** Get Help\
**Tags:** application, sso\
**Created:** [August 19, 2024, 11:00pm UTC](https://community.auth0.com/t/why-am-i-getting-failed-exchange-401/141343 "2024-08-19T23:00:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jackiegleason](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jackiegleason/32/8119_2.png) [@jackiegleason](https://community.auth0.com/u/jackiegleason)\
**Post date:** [August 19, 2024, 11:00pm UTC](https://community.auth0.com/t/why-am-i-getting-failed-exchange-401/141343/1 "2024-08-19T23:00:48Z")

</div>

I am trying to login as a new Google user to the site and I am getting the following after login

@auth0\_auth0-react.js?v=8fcaaf86:509 POST [https://jackiergleason.auth0.com/oauth/token](https://jackiergleason.auth0.com/oauth/token) 401 (Unauthorized)

When I look at the log I see

- Type

Failed Exchange

“description”: “Unauthorized”

What am I missing?

---

<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 21, 2024, 10:36pm UTC](https://community.auth0.com/t/why-am-i-getting-failed-exchange-401/141343/4 "2024-08-21T22:36:18Z")

</div>

Hi @jackiegleason,

This error usually happens if you did not pass in the `audience` in your login request.

In this situation, I recommend logging in with the `audience` included in your login request. Then, you can successfully exchange a code for an access token.

Let me know if you continue having errors.

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 4, 2024, 10:37pm UTC](https://community.auth0.com/t/why-am-i-getting-failed-exchange-401/141343/5 "2024-09-04T22:37:05Z")

</div>

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