fix: WS reconnection deadlock, remove redundant try/except, fix docs

- websocket.js: schedule reconnect backoff when token refresh fails,
  otherwise WebSocket stays dead after 3+ disconnects with failed refresh
- daemon/handlers/auth.py: remove two redundant try/except ValueError: raise
  blocks in webauthn register/authenticate finish handlers
- docs/api.md: mark permissions as optional in Create User endpoint
This commit is contained in:
2026-07-28 01:44:10 +00:00
parent 358573567d
commit 739253b2e5
3 changed files with 8 additions and 12 deletions
+1 -1
View File
@@ -204,7 +204,7 @@ Create a new user with password and per-subsystem permissions.
|---|---|---|---|
| `username` | `string` | Yes | Username |
| `password` | `string` | Yes | Plain-text password |
| `permissions` | `object` | Yes | Per-subsystem permissions (`{ subsystem: "read" \| "rw" }`) |
| `permissions` | `object` | No | Per-subsystem permissions (`{ subsystem: "read" \| "rw" }`) |
**Response:** `data` is `null` on success.