Hey community,
We recently implemented a custom domain for our platform. But it seems that there is a problem with the authentication token. We are using auth0-react
SDK with this config:
<Auth0Provider
domain={<OUR_CUSTOM_DOMAIN>}
clientId={<APP_CLIENT_ID>}
onRedirectCallback={(appState?: AppState) => {
history.push(appState && appState.returnTo ? appState.returnTo : window.location.pathname)
}}
cache={new LocalStorageCache()}
useRefreshTokens=true
authorizationParams={{
audience: `https://${<ORIGINAL_DOMAIN>}/api/v2/`,
screen_hint: signUpMethod === undefined ? 'login' : 'signup',
organization: undefined,
redirect_uri: <REDIRECT_URL>
}}
>
...
<Auth0Provider >
Errors:
Can you please point us out where could be the problem? Also, another thing is on our dev environment it seems to work fine. On the staging, where we also use the auth0 development environment it doesn’t work, which is strange even though both of them are configured in the same way