# Silent Authentication Returning 200 with isAuthenticated false

**URL:** <https://community.auth0.com/t/silent-authentication-returning-200-with-isauthenticated-false/54732>\
**Category:** Get Help\
**Created:** [December 13, 2020, 1:01am UTC](https://community.auth0.com/t/silent-authentication-returning-200-with-isauthenticated-false/54732 "2020-12-13T01:01:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dvargas92495](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dvargas92495/32/26221_2.png) [@dvargas92495](https://community.auth0.com/u/dvargas92495)\
**Post date:** [December 13, 2020, 1:01am UTC](https://community.auth0.com/t/silent-authentication-returning-200-with-isauthenticated-false/54732/1 "2020-12-13T01:01:40Z")

</div>

I am using the [auth0-react](https://github.com/auth0/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:

 ![image](https://global.discourse-cdn.com/auth0/original/3X/4/0/4051fe53af67711eba7cc9f192226dc7bcfa95d5.png)

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?

---

<div class="post-metadata">

**Author:** ![dvargas92495](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dvargas92495/32/26221_2.png) [@dvargas92495](https://community.auth0.com/u/dvargas92495)\
**Post date:** [December 13, 2020, 2:45am UTC](https://community.auth0.com/t/silent-authentication-returning-200-with-isauthenticated-false/54732/2 "2020-12-13T02:45:09Z")

</div>

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

```

Solved this by adding the above props to my Auth0Provider Component

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [December 14, 2020, 9:18am UTC](https://community.auth0.com/t/silent-authentication-returning-200-with-isauthenticated-false/54732/3 "2020-12-14T09:18:50Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [December 29, 2020, 9:18am UTC](https://community.auth0.com/t/silent-authentication-returning-200-with-isauthenticated-false/54732/4 "2020-12-29T09:18:51Z")

</div>

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