This commit is contained in:
Jack Mechem 2026-05-01 16:21:50 -07:00
parent c991fe7b6d
commit e6b5fed399
8 changed files with 6647 additions and 6623 deletions

View file

@ -13,7 +13,8 @@ export async function POST(req: NextRequest) {
});
if (!res.ok) {
return NextResponse.json({ error: "Invalid credentials" }, { status: 401 });
const text = await res.text();
return NextResponse.json({ error: text }, { status: 401 });
}
// Returns { session_id, challenge } — browser completes the WebAuthn step