CJ_Clippy 140883a69c
Some checks failed
ci / build (push) Failing after 1s
dec 2024 progress
2024-12-11 23:23:46 -08:00

13 lines
319 B
TypeScript

import { getServerSession } from "next-auth";
import { authOptions } from "@/app/lib/auth";
import { NextResponse } from "next/server";
export async function GET(request: Request) {
const session = await getServerSession(authOptions);
return NextResponse.json({
authenticated: !!session,
session,
});
}