My UI app uses Auth0 for auth and React-Router for routing requests.
I\'m not very experienced with React so I first tried to use this PrivateRoute component
PrivateRoute