Repository Public
1import { apiSession, json } from "@/lib/auth";2import { reauthOptions } from "@/lib/webauthn";3import { gate, handle } from "../../../_lib";45export const runtime = "nodejs";6export const dynamic = "force-dynamic";78export async function POST(req: Request) {9 return handle(async () => {10 const g = await gate(req, "reauth-options", 20);11 if (g.error) return g.error;12 const s = await apiSession(req);13 if (s.error) return s.error;14 return json({ options: await reauthOptions(s.session) });15 });16}17