You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: Account Passkeys hides a failed credential-list read as an empty list #3845
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
Open Account settings with an authenticated user who has local credentials.
Let authClient.passkey.listUserPasskeys() settle with a transport/server error.
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.
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.
Activity