Auth0-react in incognito mode running infinite redirect loop

Hey,
I’m using auth0-react in my website and I’m running into an infinite redirect loop when trying to access it from incognito or Safari. After investigation, I understand that it is due to blocking 3rd party cookies. My auth0 domain is not a custom one, it’s a “myapp.auth0.com” domain.

I read this troubleshoot from your website and I tried changing the Auth0Provider code to use refresh tokens and saving the cache in the localstorage, but it did not work.

Here’s my Auth0Provider code:

<Auth0Provider
  domain={AUTH0_DOMAIN}
  audience={`https://${AUTH0_DOMAIN}/api/v2/`}
  clientId={AUTH0_CLIENT_ID}
  onRedirectCallback={onRedirectCallback}
  redirectUri={`${window.origin}/`}
  cacheLocation="localstorage"
  useRefreshTokens
>

Do you have any suggestion on how I can make incognito & Safari logins work, preferably without changing to a custom subdomain?

1 Like

hey, I am running into the same issue. Did you find a solution?