I’m using the Auth0 SPA SDK (“version”: “1.17.0”) to try and login to Chrome on an incognito windows.
I’m using the Angular framework (“10.0.8”).
I have a working login flow using
cacheLocation: 'localstorage' and
useRefreshTokens: true in edge browser (private and non-private windows) and Chrome and Firefox (both non-incognito).
I noticed Chrome blocks 3rd party cookies in incognito by default however I was under the impression this solution exists specifically to resolve issues in that use case.
I followed the documentation steps listed here (Configure Refresh Token Rotation) for both configuration and use to no avail.
The error received occurs after redirecting back from a login to my application and the code and state parameters are set just fine. However I receive the following error in dev console.
ERROR Error: Uncaught (in promise): Error: Login required Error: Login required at new n (auth0-spa-js.production.esm.js:15) at Function.n.fromPayload (auth0-spa-js.production.esm.js:15) at r (auth0-spa-js.production.esm.js:15) at ZoneDelegate.invokeTask (zone-evergreen.js:399) at TaskTrackingZoneSpec.push../node_modules/zone.js/dist/task-tracking.js.TaskTrackingZoneSpec.onInvokeTask (task-tracking.js:62) at ZoneDelegate.invokeTask (zone-evergreen.js:398) at Object.onInvokeTask (core.js:27425) at ZoneDelegate.invokeTask (zone-evergreen.js:398) at Zone.runTask (zone-evergreen.js:167) at ZoneTask.invokeTask [as invoke] (zone-evergreen.js:480) at resolvePromise (zone-evergreen.js:798) at zone-evergreen.js:705 at rejected (tslib.es6.js:72) at ZoneDelegate.invoke (zone-evergreen.js:364) at Object.onInvoke (core.js:27437) at ZoneDelegate.invoke (zone-evergreen.js:363) at Zone.run (zone-evergreen.js:123) at zone-evergreen.js:857 at ZoneDelegate.invokeTask (zone-evergreen.js:399) at TaskTrackingZoneSpec.push../node_modules/zone.js/dist/task-tracking.js.TaskTrackingZoneSpec.onInvokeTask (task-tracking.js:70)
Also I’ve seen many similar posts but for my specific issue the posts I have seen seem to get closed before a solution is actually found.