I had to enable the use of “refresh token” for it to work properly in Safari and Brave.
I have this config in my index.js
const providerConfig = {
domain: auth0Domain,
clientId: auth0ClientId,
audience: auth0Audience,
redirectUri: auth0Redirect,
onRedirectCallback
};
ReactDOM.render(
<Auth0Provider
{...providerConfig}
useRefreshTokens={true}
cacheLocation="localstorage"
>
<ThemeProvider theme={theme}>
<Provider store={store}>
<App />
</Provider>
</ThemeProvider>
</Auth0Provider>,
document.getElementById("root")
);
My config in Application Auth0.
Sometimes I don’t understand why the token refresh request fails
This problem occurs occasionally and in any browser.
I don’t understand why it happens.
References: