@auth0/auth0-spa-js": “^1.6.5”
react 16.13.1
Hi.
Tell me what the problem might be. When I add a redirect to the routing. The home page is constantly updated. Jumping from “http://localhost:3000/map” on “http://localhost:3000/?code=qMHMwIc9aj1JIQBg&state=MFBGX2N3QzBkMHI2eTZJbU10T2xXRGdosvjhaeczu08xauvuejg5dlv2yq%3D%3D "
If” Redirect " is removed, everything works correctly.
Sample code:
return (
<Switch location={location}>
<Redirect exact strict from="/" to="/map" />
<PrivateRoute
exact={false}
component={Loader}
path="/loading"
layout={MainLayout}
/>
<PrivateRoute
exact={true}
component={MapView}
path="/map"
layout={MainLayout}
/>
</Switch>