import { AuthenticatedLayout } from "./AuthenticatedLayout.tsx"; export const PasskeysPage = ({ passkeys, isAdmin = false, }: { passkeys: any[]; isAdmin?: boolean; }) => { return (

Registered Passkeys

Manage FIDO2 WebAuthn credentials and biometric authenticators.

{/* Add Passkey Drawer / Container */} {/* Desktop Table View (≥ 768px) */} {/* Mobile Adaptive Cards View (< 768px) */}
{passkeys.length === 0 ? (

No passkeys registered.

) : ( passkeys.map((passkey) => (
Passkey Credential
{passkey.credential_id ? `${passkey.credential_id.substring(0, 14)}...` : passkey.id}
{passkey.aaguid ? "Hardware/OS" : "FIDO2"}
Counter: {passkey.counter} authentications
)) )}
{/* Emergency Recovery Backup Section */}

Zero-Trust Recovery Backup

2-of-3 Shamir's Secret Sharing Matrix & Cold 12-Word Voucher

Active Protection

If you lose your hardware keys or mobile device, your 12-word recovery voucher combined with your secret PIN allows you to re-enroll a fresh passkey without admin assistance.

); };