Skip to content

ui-react: the passkey list shows the provider name from the stored AAGUID #2561

Open

Description

@schlessera

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-aaguids combined_aaguid.json), and put a comment in the file naming the registry commit they came from.
  • providerName(aaguid) returns null for 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 synced chip (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 lint

Contract impact

  • This touches the integration contract, so it needs the contract label, a CONTRACT: 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

  1. added
    type: feat
    area: ui-react
    priority: p3
    agent-ready
    on Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readyarea: ui-reactpriority: p3type: feat

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions