google-analytics plugin and plugin review
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user