Files
FEDEO/frontend/plugins/auth-init.client.ts

11 lines
195 B
TypeScript

export default defineNuxtPlugin(async () => {
if (window.location.pathname === '/guest') return
const auth = useAuthStore()
console.log("Auth init")
await auth.initStore()
})