# Unable to login on iOS 13.4.1

**URL:** <https://community.auth0.com/t/unable-to-login-on-ios-13-4-1/43034>\
**Category:** Get Help\
**Created:** [May 14, 2020, 4:39pm UTC](https://community.auth0.com/t/unable-to-login-on-ios-13-4-1/43034 "2020-05-14T16:39:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![weihan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/weihan/32/14589_2.png) [@weihan](https://community.auth0.com/u/weihan)\
**Post date:** [May 14, 2020, 4:39pm UTC](https://community.auth0.com/t/unable-to-login-on-ios-13-4-1/43034/1 "2020-05-14T16:39:32Z")

</div>

Hello Auth0 team,

We’ve been using Auth0 for 2 years and everything works fine until 2 weeks ago.  
After some users updated their iPhone to iOS 13.4.1, the login screen keeps loading forever (image 1 below).  
However for some users on iOS 13.3.1 and all Android users, it works fine.

When we check the Auth0 login history, all of them shows successful login, but they don’t redirect to the app home page (image 2 below).

Any help would be appreciated, thank you !

 ![ios134](https://global.discourse-cdn.com/auth0/original/3X/f/f/ffc7fbf26f3a4eb350ad664ff72d259f68709368.jpeg)  
 ![Screen Shot 2020-05-14 at 1.23.52 PM](https://global.discourse-cdn.com/auth0/original/3X/5/2/5206c268ead7a3f0f16432f4d2ba38f69a70abd6.png)

---

<div class="post-metadata">

**Author:** ![lily.wisecarver](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lily.wisecarver/32/20402_2.png) [@lily.wisecarver](https://community.auth0.com/u/lily.wisecarver)\
**Post date:** [May 18, 2020, 11:32pm UTC](https://community.auth0.com/t/unable-to-login-on-ios-13-4-1/43034/3 "2020-05-18T23:32:27Z")

</div>

Hi @weihan,

Welcome and thank you for posting in Auth0 Community! 🎉 🥳

Can you please ask those users if they are blocking cookies in safari for some reason?

This is how the flow should go:

When an app tells the browser to make an authentication request (**/authorize)** Auth0 will return a **302** redirection to the login page if the user needs to be authenticated. Along with that 302, Auth0 will return a session cookie (named **auth0** and **auth0\_compat** ).  
This cookie, together with the internal state in the login endpoint URL (e.g. **/u/login?state=xxxxx** ) allows Auth0 to resume the authentication flow.

If the auth0 cookie is not present in the request to **/u/login** or there is an invalid state, then Auth0 will:

- Redirect the user to the configured application login URI.
- Show an error page (to explain the user that something went wrong).

For a mobile app, redirecting to the web home page doesn’t really make sense, as it will confuse the user when an error happens.

The cookie should be in **/authorize** , and also present in the **/u/login** request. A browser should do this automatically, unless it’s blocking cookies for some reason. My guess would be that the users seeing this behavior are trying to login from a browser in their device instead of the app and blocking cookies for some reason.

Do you have any test credentials? If so you can send me a PM with the information and I will try to reproduce this on my end.

---

<div class="post-metadata">

**Author:** ![karen1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/karen1/32/18279_2.png) [@karen1](https://community.auth0.com/u/karen1)\
**Post date:** [May 28, 2020, 2:00pm UTC](https://community.auth0.com/t/unable-to-login-on-ios-13-4-1/43034/4 "2020-05-28T14:00:31Z")

</div>

Weihan was able to resolve this issue by:

Updating @auth0/cordova and 2 related plugins in here [@auth0/cordova - npm](https://www.npmjs.com/package/@auth0/cordova).  
(cordova-plugin-safariviewcontroller and cordova-plugin-customurlscheme)

After he updated them to the latest version, the app is now able to successfully redirect to the homepage after login.

---

<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:** [June 12, 2020, 2:00pm UTC](https://community.auth0.com/t/unable-to-login-on-ios-13-4-1/43034/5 "2020-06-12T14:00:32Z")

</div>

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