Repository navigation
Description
Context
The server already stores each credential's AAGUID at registration (aaguid || null, packages/ui-server/src/middleware/passkeys.ts:551) and returns it in PasskeySummary.aaguid (toSummary, passkeys.ts:231-243; type packages/ui-sdk/src/protocol.ts:1731-1741). The Security tab ignores it. An unrenamed passkey shows as "Passkey · " (displayName, packages/ui-react/src/components/settings/passkey-list.tsx:128-130). Most passkeys are added once and never renamed, so the list fills with identical-looking rows, and the owner cannot tell which one to delete.
Guide security/passkey-management, AAGUID section: an AAGUID "can be used to determine which passkey provider (e.g. Google Password Manager, iCloud Keychain, 1Password) created a credential". Also: "check if it equals '00000000-0000-0000-0000-000000000000'. If so, skip the registry lookup". Guide security/passkeys §2: "Relying Parties MUST use the AAGUID exclusively for UX hints".
Scope
- Add a bundled, names-only map in
packages/ui-react(e.g.src/lib/passkey-providers.ts): lowercase AAGUID → provider name. Cover at least Google Password Manager, Samsung Pass, iCloud Keychain, Windows Hello, 1Password, Bitwarden, Dashlane, Proton Pass and KeePassXC. Copy the AAGUIDs from the community registry (passkeydeveloper/passkey-authenticator-aaguidscombined_aaguid.json), and put a comment in the file naming the registry commit they came from. providerName(aaguid)returnsnullfor null, the all-zero AAGUID and unknown values.- Display name becomes
credential.label || providerName(aaguid) || "Passkey · <date>". This applies to existing rows too, with no migration. The rename and remove controls' accessible names (passkey-list.tsx:163-164) use the same display name. - When a label exists and the provider is known, show the provider as a secondary chip next to the existing
syncedchip (lines 168-174).
Out of scope
- Fetching the registry at runtime or build time, and provider icons. The guide wants icons, but they would mean bundling third-party image data.
- Writing a default label on the server at registration. A display-time fallback covers existing rows and needs no route change.
- Using the AAGUID for any access decision.
Acceptance criteria
- A row with an empty label and a mapped AAGUID shows the provider name. A row with the all-zero AAGUID, a null AAGUID or an unknown AAGUID shows "Passkey · ". A row with a label shows the label plus a provider chip. Each case has a unit test, and the mapped-AAGUID test fails before the change.
- The rename and remove buttons' accessible names use the same display name.
- The map file names its source registry commit, and a test asserts every key is a lowercase canonical UUID.
- No network request is added (the test preload already refuses network).
Verification
bun run test packages/ui-react/tests/passkey-providers.test.ts # new
bun run test
bun run typecheck
bun run lintContract impact
- This touches the integration contract, so it needs the
contractlabel, aCONTRACT:commit prefix, and the doc updated in the same commit. - This changes a published package's behaviour, so it needs a changeset.
None for the contract: client-side display only. The map stays internal and is not exported.
Activity