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:
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