# App infinitely redirecting after login

**URL:** <https://community.auth0.com/t/app-infinitely-redirecting-after-login/62798>\
**Category:** Get Help\
**Created:** [May 14, 2021, 5:46am UTC](https://community.auth0.com/t/app-infinitely-redirecting-after-login/62798 "2021-05-14T05:46:46Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [May 19, 2021, 3:59pm UTC](https://community.auth0.com/t/app-infinitely-redirecting-after-login/62798/7 "2021-05-19T15:59:01Z")

</div>

Hi @truescope,

Thank you for sending this info and the code! I was able to spin up the example app.

In the `Auth0Provider`, if you update `auddience` to `audience`, you’ll be able to use:

```auto
getToken(config.managementApi);

```

Without an infinite loop.

When your app requests a token that has a different audience than what is specified in the `Auth0Provider`, the SDK will attempt to perform silent authentication to obtain an Access Token with the correct audience. However, if the app domain and your Auth0 tenant domain differ, than the browser may block the transfer of third-party cookies.

Since you are using a custom domain, this should not occur. I will have to investigate your settings some more to see what might be going on for sure.

---

_[View the full topic](https://community.auth0.com/t/app-infinitely-redirecting-after-login/62798)._
