Auth0 SPA handleRedirectCallback results in login error

  • SDK: @auth0/auth0-spa-js
  • SDK Version: e.g. v1.13.6
  • Platform Version: browser

on running

auth.HandleRedirectCallback()

Error:

err: login failed

It works when I turn off 3rd-party tracking on safari.

I’ve tried using

{
        domain,
        client_id: clientId,
        redirect_uri: window.location.origin,
        useRefreshTokens: true,
        cacheLocation: 'localstorage',
    } 

as options for Auth0Client
and it still doesn’t work

Hey there!

Does it work on other browsers than Safari?

It works on all browsers except iOS Safari (iPhone/iPad). It works after turning 3rd-party tracking off.

like I mentioned, I’ve attempted to use refresh tokens.

Thank you for your reply!

Thanks for providing all that context. Let me try to dive into the SDK and potentially discuss it with repo maintainers. Will get back to you soon!

This topic was automatically closed after 13 days. New replies are no longer allowed.