Passkey manager
Settings panel for the passkeys on an account: register, inline rename with validation, and delete behind a confirmation that warns when the last passkey is about to go.
Preview and props
Expand Props below the centered preview to change the component’s properties.
Examples
Try registering, renaming and removing demo passkeys, or toggle loading and availability.
Example controls
Usage
import { PasskeyManagerBlock } from "@exegia/corpora-ui"
<PasskeyManagerBlock
passkeys={passkeys}
onRegister={register}
onDelete={remove}
/>API notes
| Prop | Type | Default | Description |
|---|---|---|---|
| passkeys | IPasskeyRecord[] | [] | The account's passkeys ({ id, name?, createdAt?, lastUsedAt? }), newest first. |
| available | boolean | true | Whether this device can register passkeys. false swaps the panel for an explanation. |
| loading | boolean | false | Shows the loading row instead of the list. |
| onRegister | () => Promise<{ cancelled?: boolean } | void> | — | Reject (or throw) to show the error. Resolve with { cancelled: true } to return silently to idle. |
| onRename / onDelete | (id, name?) => Promise<void> | — | Rename is validated to 1-120 characters before it fires; delete only fires after the confirmation is accepted. |
Last updated on
Passkey sign-in
Passkey entry point sized to sit inside a login card: one button plus its error state. Renders nothing when the device cannot use passkeys, and treats a cancelled OS prompt as a silent return to idle.
Linked accounts
Settings panel for the sign-in identities on an account: lists the connected ones, offers connect buttons for the rest, and guards the last remaining method from being disconnected.