// Author: Simon-Pierre Boucher // Contact: contact@spboucher.ai // Project: chat.spboucher.ai import { NextResponse } from "next/server"; import { requireSession } from "@/lib/auth/guard"; export const runtime = "nodejs"; export async function GET() { const { session, unauthorized } = await requireSession(); if (unauthorized) return unauthorized; return NextResponse.json({ username: session.username }); }