cineclub-site/front/plugins/init-data.server.ts

5 lines
170 B
TypeScript

import { useAuthStore } from "~/stores/authStore";
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.hook("vue:setup", () => useAuthStore().updateLogStatus())
})