Something went wrong. Try again.
Something went wrong. Try again.
123456789101112131415export default defineNuxtRouteMiddleware(async () => { const userStore = useUserStore(); const event = useRequestEvent();
if (userStore.id) { return; }
await userStore.reauthenticate(event);
if (!userStore.id) { return navigateTo('/login'); }});