# Auth0 Lock 11 and Refresh Token

**URL:** <https://community.auth0.com/t/auth0-lock-11-and-refresh-token/14828>\
**Category:** JWT.io\
**Created:** [August 29, 2018, 1:44pm UTC](https://community.auth0.com/t/auth0-lock-11-and-refresh-token/14828 "2018-08-29T13:44:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gordonlimusic1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gordonlimusic1/32/10419_2.png) [@gordonlimusic1](https://community.auth0.com/u/gordonlimusic1)\
**Post date:** [August 29, 2018, 1:44pm UTC](https://community.auth0.com/t/auth0-lock-11-and-refresh-token/14828/1 "2018-08-29T13:44:24Z")

</div>

Right now I"m implementing the basic lock with an SPA (Single Page Application). Because of this, after the access token expires, the user is logged out and has to log back in. I read that I need a refresh token so I can keep the user logged in until they log out manually like how Facebook does it.

I console logged my auth0Result and it says that refresh token is null.

Does anyone know how to do this?

Thanks!

---

<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:** [August 30, 2018, 6:26pm UTC](https://community.auth0.com/t/auth0-lock-11-and-refresh-token/14828/2 "2018-08-30T18:26:31Z")

</div>

👋 @gordonlimusic1 you won’t be able to use/get a refresh token in a Single Page Application. I believe we should be calling `checksession` to get a new token for the user ([Lock API Reference](https://auth0.com/docs/libraries/lock/v11/api#checksession-)).

---

<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 26, 2019, 9:37am UTC](https://community.auth0.com/t/auth0-lock-11-and-refresh-token/14828/3 "2019-07-26T09:37:08Z")

</div>


