I switched to Auth0 authentication in my React app. After I authenticate with Auth0 my app routes to /dashboard component which needs to get data from my API to which I need to authenticate with the access token from Auth0. But, the request fails as I have no Authorization header set in my request. I need to set an Authorization header for all of the requests happening after the authentication with a value of “Bearer accessToken”.
What is the best practice to get this flow working?