Silent Authentication Returning 200 with isAuthenticated false

I am using the auth0-react npm package. I am able to successfully log in users and was hoping to have users still be logged in on refresh. When I hit refresh, I see the authorize call in my network tab return a 200:

However, when using my useAuth0 hook I get returned the following object after the network call returns:
{
“isAuthenticated”: false,
“user”: undefined,
“error”: undefined,
“isLoading”: false,
}

Under what circumstances does the authorize endpoint return a 200 but there is no user returned? How could I debug this issue further?

  useRefreshTokens={true}
  cacheLocation={"localstorage"}

Solved this by adding the above props to my Auth0Provider Component

1 Like

Glad you have figured it out and thanks for sharing with the rest of community!

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.