Auth0 Home Blog Docs

Auth0 Lock 11 and Refresh Token


#1

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!


#2

:wave: @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 (https://auth0.com/docs/libraries/lock/v11/api#checksession-).