import type { auth } from '@/modules/auth/auth'; type AuthSession = typeof auth.$Infer.Session; /** Signed-in student (attendee or guardian): set only on /student-portal. */ export type StudentContext = { accountId: string; sessionId: string }; export type BackendEnv = { Variables: { user: AuthSession['user'] | null; session: AuthSession['session'] | null; requestId: string; student: StudentContext | null; }; }; declare module 'hono' { interface ContextVariableMap { user: AuthSession['user'] | null; session: AuthSession['session'] | null; requestId: string; student: StudentContext | null; } }