# JS renew token example logs in but doesn't renew

**URL:** <https://community.auth0.com/t/js-renew-token-example-logs-in-but-doesnt-renew/11047>\
**Category:** Get Help\
**Created:** [April 20, 2018, 2:38pm UTC](https://community.auth0.com/t/js-renew-token-example-logs-in-but-doesnt-renew/11047 "2018-04-20T14:38:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![murftone](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@murftone](https://community.auth0.com/u/murftone)\
**Post date:** [April 20, 2018, 2:38pm UTC](https://community.auth0.com/t/js-renew-token-example-logs-in-but-doesnt-renew/11047/1 "2018-04-20T14:38:52Z")

</div>

Using [https://github.com/auth0-samples/auth0-react-samples/05-Token-Renewal/](https://github.com/auth0-samples/auth0-react-samples/05-Token-Renewal/), I can log in fine and see the profile, but when I click on the “Renew Token” button, I get an error:

“Could not get a new token (login\_required: Login required).”

I’m using HS256 ID tokens, if that has anything to do with it.

The last network request is this:

https://{TENANT}.auth0.com/authorize?client\_id={CLIENT\_ID}&response\_type=token%20id\_token&redirect\_uri=http%3A%2F%2Ffoo.local%3A3000%2Fcallback&scope=openid%20profile&state={STATE}&nonce={NONCE}&response\_mode=web\_message&prompt=none&auth0Client={AUTH0CLIENT}

---

<div class="post-metadata">

**Author:** ![murftone](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@murftone](https://community.auth0.com/u/murftone)\
**Post date:** [April 23, 2018, 4:06pm UTC](https://community.auth0.com/t/js-renew-token-example-logs-in-but-doesnt-renew/11047/2 "2018-04-23T16:06:09Z")

</div>

Additional info for any Auth0 people lurking:

I tried this with an older tenant, and it worked correctly. So it just doesn’t work with the new tenant we have.

I looked at the advanced tenant settings for the two tenants, and the lists of available settings are different.

The old tenant has three advanced settings that are not available on the new tenant (and all three of these settings are turned on):

- legacy delegation endpoint
- legacy oauth/ro endpoint
- legacy social provider access token endpoint

FWIW, the version of `auth0-js` being used is 9.4.2.

---

<div class="post-metadata">

**Author:** ![kimcodes](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kimcodes/32/81052_2.png) [@kimcodes](https://community.auth0.com/u/kimcodes)\
**Post date:** [April 23, 2018, 7:35pm UTC](https://community.auth0.com/t/js-renew-token-example-logs-in-but-doesnt-renew/11047/3 "2018-04-23T19:35:49Z")

</div>

👋 @murftone just tried this and I get the `Login required` message when I am using Google login without the developer keys. This will prevent token renewal from working. Which connection are you suing?

---

<div class="post-metadata">

**Author:** ![murftone](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@murftone](https://community.auth0.com/u/murftone)\
**Post date:** [April 23, 2018, 8:23pm UTC](https://community.auth0.com/t/js-renew-token-example-logs-in-but-doesnt-renew/11047/4 "2018-04-23T20:23:21Z")

</div>

> Which connection are you using?

Thanks! Google/social. Aha. I think you might have meant that you tested without the _Auth0_ developer keys? Your comment led me to read a little about developer keys. I didn’t set up the account, so I didn’t know about this. We’ll set up the non-Auth0 keys, and that should make this problem go away …

---

<div class="post-metadata">

**Author:** ![kimcodes](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kimcodes/32/81052_2.png) [@kimcodes](https://community.auth0.com/u/kimcodes)\
**Post date:** [April 23, 2018, 8:26pm UTC](https://community.auth0.com/t/js-renew-token-example-logs-in-but-doesnt-renew/11047/5 "2018-04-23T20:26:22Z")

</div>

No problem! The `login_required` can happen, so give this a shot and let me know if it works. If you still get the issue, more than happy to work through other possible causes and solutions. There is some further reading if you didn’t come across it already [Test Social Connections with Auth0 Developer Keys](https://auth0.com/docs/connections/social/devkeys#limitations-of-developer-keys)

The step-by-step guide for Google specifically is here: step-by-step guide here: [https://auth0.com/docs/connections/social/google](https://auth0.com/docs/connections/social/google)

---

<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:** [July 25, 2019, 12:51pm UTC](https://community.auth0.com/t/js-renew-token-example-logs-in-but-doesnt-renew/11047/6 "2019-07-25T12:51:48Z")

</div>


