# Jquery refresh access token

**URL:** <https://community.auth0.com/t/jquery-refresh-access-token/8726>\
**Category:** Get Help\
**Tags:** refresh, token, access-token, access, javascript\
**Created:** [November 13, 2017, 5:57pm UTC](https://community.auth0.com/t/jquery-refresh-access-token/8726 "2017-11-13T17:57:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomheaps](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@tomheaps](https://community.auth0.com/u/tomheaps)\
**Post date:** [November 13, 2017, 5:57pm UTC](https://community.auth0.com/t/jquery-refresh-access-token/8726/1 "2017-11-13T17:57:25Z")

</div>

I have built a simple SPA using ONLY jQuery, html and css and am successfully authenticating access to it using auth0.

I would like to refresh a users access token automatically but can’t work out how to do this - the [SDK quickstart for jquery token renewal](https://auth0.com/docs/quickstart/spa/jquery/05-token-renewal) gives an example using an Express server and Node.js but I am using a simple Apache server (my web host) and don’t know how to amend the server.js /silent.html files or where to put these files given that I am not using Express or Node.js.

Can anybody please help me out?

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [November 13, 2017, 6:57pm UTC](https://community.auth0.com/t/jquery-refresh-access-token/8726/2 "2017-11-13T18:57:59Z")

</div>

The quickstart you mention relies on a Node.js server, but only for the purpose of serving a static file so you would only need to also serve the `/silent.html` static file from any other web server you decide to use.

Having said that, you may also want to consider using the Auth0.js `checkSession` [method](https://auth0.com/docs/libraries/auth0js/v8#using-checksession-to-acquire-new-tokens) instead of the `renewAuth` as that will mean the static file is no longer a requirement. Be sure to read the linked documentation as the method does require some configuration on the client settings.

---

<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:** [March 2, 2018, 5:57am UTC](https://community.auth0.com/t/jquery-refresh-access-token/8726/3 "2018-03-02T05:57:22Z")

</div>


