import { requireSession } from '#server/utils/server-session' /** * Lightweight session probe for the Nuxt `authenticated` middleware. Returns * the session payload on success, 401 otherwise. The dashboard endpoint * already requires a session, but the middleware needs a cheap call that * doesn't touch the DB. */ export default defineEventHandler(async event => { const session = await requireSession(event) return session })