diff --git a/app/auth/page.tsx b/app/auth/page.tsx index aa9aa79..e4babb6 100644 --- a/app/auth/page.tsx +++ b/app/auth/page.tsx @@ -50,7 +50,6 @@ export default function AuthPage() { setStatus("checking"); try { - // Step 1: verify password → get WebAuthn challenge const loginRes = await fetch("/api/auth/login", { method: "POST", headers: { "Content-Type": "application/json" }, @@ -65,7 +64,6 @@ export default function AuthPage() { const { session_id, challenge } = await loginRes.json(); - // Step 2: prompt YubiKey tap setStatus("waiting_yubikey"); const opts = challenge.publicKey; opts.challenge = b64uToBuf(opts.challenge); @@ -94,7 +92,6 @@ export default function AuthPage() { return; } - // Step 3: verify assertion → set cookie setStatus("verifying"); const assertion = cred.response as AuthenticatorAssertionResponse; @@ -140,23 +137,21 @@ export default function AuthPage() { const busy = status !== "idle"; return ( -
-
- {/* Header */} +
+
-

+

dell-xps-nixos-serv

-

+

Login

-

Enter system credentials

+

Enter system credentials

- {/* Username */}
-
- {/* Password */}
-
- {/* YubiKey cue */} {status === "waiting_yubikey" && ( -

+

Touch your YubiKey…

)} - {/* Error */} {error && (

{error}

)} - {/* Submit */}