isAuthenticated is false and isLoading is true after login

Please include the following information in your post:

  • Which SDK this is regarding: e.g. auth0-react
  • SDK Version: e.g. 1.5.0
  • Code Snippets/Error Messages/Supporting Details/Screenshots:

After I click the login button and go through the login flow and am redirected back, the useAuth0().isAuthenticated is false and userAuth0().isLoading is true even though I’m logged in. I can verify that I’m logged in because clicking the login button again doesn’t redirect me to the login flow but just refreshes the page. How to fix this?