feat: add profile management flow

This commit is contained in:
Matthieu
2025-09-17 23:11:13 +02:00
parent 37c66ac3d6
commit 316dcb6339
27 changed files with 2717 additions and 1556 deletions

View File

@@ -0,0 +1,12 @@
import { useProfileSession } from '#imports'
export default defineNuxtRouteMiddleware(async (to) => {
const { ensureSession, activeProfile } = useProfileSession()
await ensureSession()
const isProfilesRoute = to.path.startsWith('/profiles')
if (!activeProfile.value && !isProfilesRoute) {
return navigateTo('/profiles')
}
})