[RACE CONDITION] Auth0 Redirect and Context
Is there a way I can put my Auth0 State into my Router Context and be able to use
I'm trying to use
Here is their example with
Any extra pair of
would be helpful
useNavigate() in order to redirect back to routes a user is trying to access?I'm trying to use
useAuth0 and useNavigate but RouterProvider is waiting for its context from useAuth0 and useNavigate that is being used inside of the Auth0ProviderWithRedirect needs to be within RouterProviderHere is their example with
react-router https://github.com/auth0/auth0-react/blob/main/EXAMPLES.md#protecting-a-route-in-a-react-router-dom-v6-appAny extra pair of
GitHub
Auth0 SDK for React Single Page Applications (SPA) - auth0/auth0-react