Files
professor/app/api/auth/me/route.ts
Aodhan Collins f644937604 Initial commit — AI-powered coding tutor (Professor)
Next.js 16, React 19, Monaco editor, Anthropic SDK, multi-provider AI,
Wandbox Python execution, iframe HTML preview, SQLite auth + session persistence.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-04 21:48:34 +00:00

9 lines
288 B
TypeScript

import { NextResponse } from 'next/server';
import { getAuthUser } from '@/lib/auth';
export async function GET() {
const user = await getAuthUser();
if (!user) return NextResponse.json({ user: null });
return NextResponse.json({ user: { id: user.userId, email: user.email } });
}