# How does Auth0 determine when to throw login\_required error during silent authentication?

**URL:** <https://community.auth0.com/t/how-does-auth0-determine-when-to-throw-login-required-error-during-silent-authentication/159736>\
**Category:** Get Help\
**Tags:** authentication-sessions, sessions\
**Created:** [December 9, 2024, 6:15pm UTC](https://community.auth0.com/t/how-does-auth0-determine-when-to-throw-login-required-error-during-silent-authentication/159736 "2024-12-09T18:15:21Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![marybeth.hunter](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/marybeth.hunter/32/61955_2.png) [@marybeth.hunter](https://community.auth0.com/u/marybeth.hunter)\
**Post date:** [December 10, 2024, 10:25pm UTC](https://community.auth0.com/t/how-does-auth0-determine-when-to-throw-login-required-error-during-silent-authentication/159736/5 "2024-12-10T22:25:23Z")

</div>

Hi @GabrielYamamoto,

Yes, that should work. I just wanted to confirm!

So the user logs in, you call `getAccessTokenSilently()` with audienceB, and immediately get the “login\_required” error? This [solution](https://community.auth0.com/t/update-token-after-updating-user-info/87140/5) explains what `getAccessTokenSilently()` does. I wonder if you could try having the user authenticate with an audience and see if this changes anything.

Here are some other articles I found that may prove useful:

- [Calling the getAccessTokenSilently API Returns the Same Access Token](https://community.auth0.com/t/calling-the-getaccesstokensilently-api-returns-the-same-access-token/134411)
- [GetAccessTokenSilently - #3 by stephanie.chamblee](https://community.auth0.com/t/getaccesstokensilently/59860/3)

Thanks,

Mary Beth

---

_[View the full topic](https://community.auth0.com/t/how-does-auth0-determine-when-to-throw-login-required-error-during-silent-authentication/159736)._
