# Authentication struggles on iOS

**URL:** <https://community.auth0.com/t/authentication-struggles-on-ios/98039>\
**Category:** Get Help\
**Tags:** authentication-sessions, sessions\
**Created:** [January 12, 2023, 10:29am UTC](https://community.auth0.com/t/authentication-struggles-on-ios/98039 "2023-01-12T10:29:15Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![david\_obrien](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/david_obrien/32/42574_2.png) [@david\_obrien](https://community.auth0.com/u/david_obrien)\
**Post date:** [January 12, 2023, 10:29am UTC](https://community.auth0.com/t/authentication-struggles-on-ios/98039/1 "2023-01-12T10:29:15Z")

</div>

I am using auth0 free plan (for now).  
I have an Angular SPA which is already using auth0 successfully, everywhere except on Apple devices.  
On Chrome, Edge, all is well, on iOS I get weirdness.

I use `'@auth0/auth0-angular'` in my app.

In `app.module.ts` I initiate the client like so:

```auto
    AuthModule.forRoot({
      ...env.auth,
      useRefreshTokens: true,
      cacheLocation: 'localstorage',
      scope: 'openid email profile',
      httpInterceptor: {
        allowedList: [`*`],
      },
    }),

```

I first noticed issues when a dropdown menu on the first page (after login) didn’t populate with values from our backend APIs (other pages, without dropdowns are fine though).  
Then, when users refresh the page they end up in a login loop. The page has lost the state it seems and thinks the user is not logged in, says they should log in (doesn’t redirect to auth0 anymore though) and just stops working.

We use `isAuthenticated$ = this.authService.isAuthenticated$` from `import { AuthService } from '@auth0/auth0-angular';`. Again, this works as we expect everywhere, except Apple.

What are we missing here?

Thanks for your help!  
David

---

<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:** [January 12, 2023, 12:56pm UTC](https://community.auth0.com/t/authentication-struggles-on-ios/98039/2 "2023-01-12T12:56:27Z")

</div>

Hey there!

Sorry for guiding you other way but in order to handle that most effectively it would be best if you can open an exactly the same issue in the SDK GitHub repo here:

> **[GitHub - auth0/auth0-angular: Auth0 SDK for Angular Single Page Applications](https://github.com/auth0/auth0-angular)**
>
> Auth0 SDK for Angular Single Page Applications. Contribute to auth0/auth0-angular development by creating an account on GitHub.

so we can work on that directly with the repo maintainers. Once you have a link to it please share it here with us so we can ping them. Thank you!

---

<div class="post-metadata">

**Author:** ![david\_obrien](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/david_obrien/32/42574_2.png) [@david\_obrien](https://community.auth0.com/u/david_obrien)\
**Post date:** [January 12, 2023, 10:38pm UTC](https://community.auth0.com/t/authentication-struggles-on-ios/98039/3 "2023-01-12T22:38:33Z")

</div>

Done: [Authentication struggles on iOS · Issue #406 · auth0/auth0-angular (github.com)](https://github.com/auth0/auth0-angular/issues/406)

Thanks Konrad.

---

<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:** [January 13, 2023, 1:22pm UTC](https://community.auth0.com/t/authentication-struggles-on-ios/98039/4 "2023-01-13T13:22:52Z")

</div>

Perfect! Pinging the team in a few minutes!

---

<div class="post-metadata">

**Author:** ![david\_obrien](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/david_obrien/32/42574_2.png) [@david\_obrien](https://community.auth0.com/u/david_obrien)\
**Post date:** [January 13, 2023, 8:15pm UTC](https://community.auth0.com/t/authentication-struggles-on-ios/98039/5 "2023-01-13T20:15:02Z")

</div>

Thanks. Our users will be happy to soon getting a solution. The fact we can’t help our Apple users at the moment is hurting badly.

---

<div class="post-metadata">

**Author:** ![david\_obrien](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/david_obrien/32/42574_2.png) [@david\_obrien](https://community.auth0.com/u/david_obrien)\
**Post date:** [January 16, 2023, 2:48am UTC](https://community.auth0.com/t/authentication-struggles-on-ios/98039/6 "2023-01-16T02:48:32Z")

</div>

@konrad.sopala any update on this? Can’t see any activity on the GH issue.

---

<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:** [January 16, 2023, 7:09am UTC](https://community.auth0.com/t/authentication-struggles-on-ios/98039/7 "2023-01-16T07:09:24Z")

</div>

Hey there!

Just repinged the team on that front.

---

<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:** [January 30, 2023, 7:10am UTC](https://community.auth0.com/t/authentication-struggles-on-ios/98039/8 "2023-01-30T07:10:07Z")

</div>

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