state: () => ({
authenticated: false,
action: null,
user: {},
}),
initialize() {
const authCookie = useCookie('_auth')
if (authCookie.value) {
this.user = authCookie.value
this.authenticated = true
}
},
state: () => ({
authenticated: false,
action: null,
user: {},
}),
initialize() {
const authCookie = useCookie('_auth')
if (authCookie.value) {
this.user = authCookie.value
this.authenticated = true
}
},