builder / app /api /auth /check /route.ts
Leon4gr45's picture
Upload folder using huggingface_hub
eeb9404 verified
Raw
History Blame Contribute Delete
314 Bytes
import { NextResponse } from 'next/server';
import { getSession } from '@/lib/auth/session';
export async function GET() {
const session = await getSession();
if (!session) {
return NextResponse.json({ authenticated: false }, { status: 401 });
}
return NextResponse.json({ authenticated: true });
}