# Cannot Complete Silent Auth on Mobile Device: \`login\_required\`

**URL:** <https://community.auth0.com/t/cannot-complete-silent-auth-on-mobile-device-login-required/62279>\
**Category:** Get Help\
**Tags:** auth0-spa-js, access\_token, mobile, jwt, silent-auth\
**Created:** [May 5, 2021, 5:20pm UTC](https://community.auth0.com/t/cannot-complete-silent-auth-on-mobile-device-login-required/62279 "2021-05-05T17:20:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![brady](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/brady/32/25817_2.png) [@brady](https://community.auth0.com/u/brady)\
**Post date:** [May 5, 2021, 5:20pm UTC](https://community.auth0.com/t/cannot-complete-silent-auth-on-mobile-device-login-required/62279/1 "2021-05-05T17:20:02Z")

</div>

Please include the following information in your post:

- **Which SDK this is regarding:** @auth0/auth0-spa-js

- **SDK Version:** 1.13.2

- **Platform Version:** N/A

- **Code Snippets/Error Messages/Supporting Details/Screenshots:**  
N/A - Happy to provide as necessary

- **Is this a feature request or bug report?** May be a bug, I don’t know.

I am using the Auth0 SPA SDK to authenticate users for my single page application. This single page application utilizes many backend applications, all of which have protected endpoints that require a JWT in a Bearer authorization header. As such, I use the sdk’s `silentAuth` capabilities to fetch access tokens on behalf of a logged in user before making a request to an API’s endpoint. This works perfectly using a desktop web browser.

For some reason, this does not work on mobile. If I visit the same page using my mobile chrome and safari browsers, the silent auth fails with a `login_required` code. My understanding is that silent auth would fail with this error code if the required auth0 cookies are not found on the user’s browser session. To my knowledge, I am not doing anything differently between my web use and my mobile use. Is this a known limitation of Auth0 & mobile browsers?

Any help or suggestions on how to further debug are very helpful. Thank you!

**Edit:** This is also occurring on desktop safari browser. From my other research, it seems this is expected as Safari does not allow 3rd party cookies? This still doesn’t really explain though why the issue occurs on Chrome Mobile Browser.

---

<div class="post-metadata">

**Author:** ![brady](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/brady/32/25817_2.png) [@brady](https://community.auth0.com/u/brady)\
**Post date:** [May 5, 2021, 8:40pm UTC](https://community.auth0.com/t/cannot-complete-silent-auth-on-mobile-device-login-required/62279/2 "2021-05-05T20:40:38Z")

</div>

After further research and coming across [this answer to a similar issue](https://community.auth0.com/t/failed-silent-auth-login-required/33165/39), I made the switch to Auth0’s Custom Domain solution and it fixed all of the issues mentioned above. This topic can be closed!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [May 6, 2021, 8:12am UTC](https://community.auth0.com/t/cannot-complete-silent-auth-on-mobile-device-login-required/62279/3 "2021-05-06T08:12:39Z")

</div>

Perfect! Thanks for letting us know!

---

<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:** [May 21, 2021, 8:13am UTC](https://community.auth0.com/t/cannot-complete-silent-auth-on-mobile-device-login-required/62279/4 "2021-05-21T08:13:26Z")

</div>

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