loading...

Discussion on: PKCE authenticaton for Nuxt SPA with Laravel as backend

Collapse
thorbn profile image
Thor

I did:

In authIt.js

const access_token = cookies.get('x-access-token');
if
no token redirect to /login

else

store.$axios.$get(process.env.LARAVEL_ENDPOINT+'/api/user')
.then(resp => {
store.$auth.setUser(resp)
......