// Executor for `session.me`. Reads the Subject the AuthMiddleware resolved (via // voltroPasswordStrategy reading the session cookie) and returns it. import type { AppContext } from '@voltro/runtime' const execute = async (_input: Record, ctx: AppContext) => { const subject = ctx.request.subject as { readonly type: string readonly id: string | null readonly tenantId: string | null } return { type: subject.type, id: subject.id ?? null, tenantId: subject.tenantId ?? null, } } export default execute