Files
leim-tools/app/middleware/authGuard.ts
Alexis 7fdab8601f Migration to nuxt 4
Used codemods CLI and reworked most alias'd path that stopped working
2025-07-27 14:30:30 +02:00

8 lines
140 B
TypeScript

export default defineNuxtRouteMiddleware(() => {
const user = useSupabaseUser()
if (!user.value) {
return abortNavigation()
}
})