I used cookie-universal-nuxt. on vuex store for login action i set a commit with the token window.$nuxt.$cookies.set('token', payload, { path: '/', }).
localstorage-in-middleware-nuxt
939c2ea5af
nuxt middleware localstorage, nuxt localstorage middleware
Comments