Auth0 Home Blog Docs

Auth0 + Vue.js how to keep user logged in for x days

#1

Hi all!

I followed the quickstart guide (https://auth0.com/docs/quickstart/spa/vuejs/03-calling-an-api) and I have login/logout working. However, as soon as refresh the page, the user user is logged out and has to log back in. Are there any tutorials on how to keep the user logged in for x hours/days in Vue.js? I found this one: https://itnext.io/managing-and-refreshing-auth0-tokens-in-a-vuejs-application-65eb29c309bc, but I am not sure whether this is up to date.

Thanks!