Skip to content

Bug: Account Passkeys hides a failed credential-list read as an empty list #3845

Closed

Description

@yannickmonney

Finding

Account Passkeys hides a failed credential-list read as an empty list

Impact

When the current user’s passkey listing fails after authentication, Account settings silently removes all passkey rows while leaving “Add a passkey” available. A user may conclude no passkey is registered, register duplicates, or fail to notice that their phishing-resistant credential inventory is unavailable. There is no error or retry affordance.

Reproduction

  1. Open Account settings with an authenticated user who has local credentials.
  2. Let authClient.passkey.listUserPasskeys() settle with a transport/server error.
  3. Inspect the Passkeys section.

Actual result: the section shows its normal heading and Add a passkey button but no rows, alert, failed-read message, or Retry/Try again/Reload control.

Expected result: distinguish a successful empty list from an unavailable list. Keep any cached rows during a refetch; on an initial failure show a read-error state with Retry, and avoid suggesting the user has no passkeys.

Root cause and scope

At current origin 9ea59724df24d62729a9360f3902d964dab39b3e, services/platform/app/features/settings/account/components/passkey-section.tsx:53-68 defines a query that throws on list failure but destructures only { data: passkeys, isLoading } at :53; :112-124 renders rows only when passkeys && passkeys.length > 0 and has no isError/error branch or refetch control. A settled error therefore renders the same output as a successful empty array.

Evidence

  • Probe: /Users/yannick/.codex/notes/tale-1000-additional/settings-next/passkey-read-error.probe.test.tsx
  • Replay: /Users/yannick/.codex/notes/tale-1000-additional/settings-next/passkey-read-error.replay.log
  • Probe assertion: one Vitest test passed with authenticated/credential status and passkey query data: undefined, isLoading:false, isError:true; normal section/Add action appeared with no rows, alert, or retry.
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

    bugservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions