google-analytics plugin and plugin review

This commit is contained in:
María
2025-08-22 13:02:48 +02:00
parent 500dd1efbe
commit 541e922ff5
7 changed files with 72 additions and 68 deletions

View File

@@ -11,6 +11,7 @@ export const useAuthStore = defineStore('auth', {
role: 'ANON' as string,
cookiesAreAccepted: false,
}),
persist: true, // Enable persistence. Cookies will be stored 'auth'
getters: {
isAuthenticated: (state) => !!state.access,
isUser: (state) => state.role === 'SHOP_USER',