Hello,
I am trying to implement @auth0/auth0-react into my React application, but cannot get my users authenticated for some reason. Clearing the cache and authenticating works as expected, I get sent to my tenants authentication page. Logging in is successful, redirects back to my application, but isAuthenthicated is still false. Trying to “log in” again using withAuth0’s loginWithRedirect just refreshes the page.
I followed the set up in the auth0-react-sample-classes tutorial, and have a nearly identical setup auth0-wise.
-
Which SDK this is regarding: e.g. @auth0/auth0-react
-
SDK Version: e.g. 1.6.0
-
Platform Version: React 16.13.1,
-
Code Snippets/Error Messages/Supporting Details/Screenshots:
<Auth0Provider
domain={domain}
clientId={clientId}
redirectUri={window.location.origin}
onRedirectCallback={onRedirectCallback}
audience={audience}
>
{props.children}
</Auth0Provider>
Any and all suggestions are greatly appreciated!