export default defineNuxtPlugin(() => { const authStore = useAuthStore(); // Restore auth state from localStorage before any navigation if (process.client) { authStore.checkAuth(); } });