Passkeys section disappears when listing passkeys fails, with no reason given #119

Closed
opened 2026-11-19 16:18:28 +00:00 by jcoffey-dev · 1 comment
Owner

Forum t/339: on server rc.32, webmail rc.7, with passkeys allowed in Security › Authentication and on the domain, Settings › Security & Sessions shows the Passkeys heading and "Loading…" for a moment, then the whole section disappears.

Why: listPasskeys() in web/src/lib/passkeys.ts returns null on any error from inbuxa:Passkey/get, and Passkeys in web/src/views/settings/SecuritySettings.tsx then renders nothing. Null was meant for "this server has no passkeys", but it also covers a refusal (e.g. forbidden when the account's permissions lack sysPasskeyGet) and any other failure. The reader sees a feature appear and vanish with no reason.

Fix:

  • Hide the section only when the server doesn't offer passkeys (method unknown / capability not advertised).
  • On forbidden, keep the section with a short note: passkeys aren't available for this account, ask your mail administrator.
  • On any other error, keep the section and show the error with a retry.
  • Related minor UX from the click-through: with passkeys off (passkeysAllowed false) Add is still shown and a blank window flashes before the refusal; hide or disable Add when the session says it's not allowed.

Related: inbuxa-server issue for accounts/roles whose permission lists predate the sysPasskey* permissions.

Forum t/339: on server rc.32, webmail rc.7, with passkeys allowed in Security › Authentication and on the domain, Settings › Security & Sessions shows the Passkeys heading and "Loading…" for a moment, then the whole section disappears. **Why:** `listPasskeys()` in `web/src/lib/passkeys.ts` returns `null` on any error from `inbuxa:Passkey/get`, and `Passkeys` in `web/src/views/settings/SecuritySettings.tsx` then renders nothing. Null was meant for "this server has no passkeys", but it also covers a refusal (e.g. `forbidden` when the account's permissions lack `sysPasskeyGet`) and any other failure. The reader sees a feature appear and vanish with no reason. **Fix:** - Hide the section only when the server doesn't offer passkeys (method unknown / capability not advertised). - On `forbidden`, keep the section with a short note: passkeys aren't available for this account, ask your mail administrator. - On any other error, keep the section and show the error with a retry. - Related minor UX from the click-through: with passkeys off (`passkeysAllowed` false) Add is still shown and a blank window flashes before the refusal; hide or disable Add when the session says it's not allowed. Related: inbuxa-server issue for accounts/roles whose permission lists predate the `sysPasskey*` permissions.
jcoffey-dev added the bug label 2026-11-19 16:18:28 +00:00
jcoffey-dev self-assigned this 2026-11-19 16:23:28 +00:00
jcoffey-dev added this to the 27.1 milestone 2026-11-19 16:23:28 +00:00
jcoffey-dev added the
priority
p2
label 2026-11-19 16:23:28 +00:00
Author
Owner

Fixed by #120 (merged to main as b860596b). The Passkeys section now hides only on a server without passkeys. When the server refuses, it says passkeys aren't available for this account and to ask the mail administrator. Any other failure shows the reason and a Retry button. Ships in the next webmail RC. The server-side cause (inbuxa-server#478) is fixed by inbuxa-server#483.

Fixed by #120 (merged to main as b860596b). The Passkeys section now hides only on a server without passkeys. When the server refuses, it says passkeys aren't available for this account and to ask the mail administrator. Any other failure shows the reason and a Retry button. Ships in the next webmail RC. The server-side cause (inbuxa-server#478) is fixed by inbuxa-server#483.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: inbuxa/inbuxa-webmail#119