# Sample react app login again after refresh

**URL:** <https://community.auth0.com/t/sample-react-app-login-again-after-refresh/19503>\
**Category:** Get Help\
**Created:** [January 1, 2019, 9:34pm UTC](https://community.auth0.com/t/sample-react-app-login-again-after-refresh/19503 "2019-01-01T21:34:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![danial.farid](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/danial.farid/32/10216_2.png) [@danial.farid](https://community.auth0.com/u/danial.farid)\
**Post date:** [January 1, 2019, 9:34pm UTC](https://community.auth0.com/t/sample-react-app-login-again-after-refresh/19503/1 "2019-01-01T21:34:18Z")

</div>

I just cloned the sample 01 react app and logged in. After refreshing the browser it shows “Could not get a new token (login\_required: Login required).” and I have to login again. How to fix this?

---

<div class="post-metadata">

**Author:** ![nicolas\_sabena](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nicolas_sabena/32/6064_2.png) [@nicolas\_sabena](https://community.auth0.com/u/nicolas_sabena)\
**Post date:** [January 1, 2019, 9:45pm UTC](https://community.auth0.com/t/sample-react-app-login-again-after-refresh/19503/2 "2019-01-01T21:45:36Z")

</div>

Take a look at the answer at [SPA + Embedded Login + Token Refresh Strategy? - #2 by nicolas\_sabena](http://community.auth0.com/t/spa-embedded-login-token-refresh-strategy/19496/2), see if any of the possibilities apply to your case.

---

<div class="post-metadata">

**Author:** ![danial.farid](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/danial.farid/32/10216_2.png) [@danial.farid](https://community.auth0.com/u/danial.farid)\
**Post date:** [January 1, 2019, 10:24pm UTC](https://community.auth0.com/t/sample-react-app-login-again-after-refresh/19503/3 "2019-01-01T22:24:17Z")

</div>

I don’t know which one is my case, I am using Chrome with disabled security for cross domain check so I don’t think any of those applies. I expect the first example I run for auth0 integration to be able to handle this or mention it in the doc if there is another setting that needs to be done.

---

<div class="post-metadata">

**Author:** ![nicolas\_sabena](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nicolas_sabena/32/6064_2.png) [@nicolas\_sabena](https://community.auth0.com/u/nicolas_sabena)\
**Post date:** [January 2, 2019, 12:44pm UTC](https://community.auth0.com/t/sample-react-app-login-again-after-refresh/19503/4 "2019-01-02T12:44:26Z")

</div>

Are you testing this with a social connection? If so, have you set up your own keys, or are you using Auth0’s developer keys? Dev keys [have many limitations](https://auth0.com/docs/connections/social/devkeys), one of them being that you don’t get a valid SSO session.

If you have set up your own keys, please record a .HAR file as instructed in [Generate and Analyze HAR Files](https://auth0.com/docs/har) and attach it here (remember to obscure any passwords used).  
Make sure to include the first login and the subsequent refresh and silent token retrieval attempt.

---

<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:** [August 29, 2019, 8:26am UTC](https://community.auth0.com/t/sample-react-app-login-again-after-refresh/19503/5 "2019-08-29T08:26:25Z")

</div>


