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
+2
View File
@@ -62,6 +62,8 @@ function _wsConnect() {
setTimeout(_wsConnect, 100);
}).catch(() => {
_wsRefreshing = false;
_wsReconnectMs = Math.min(_wsReconnectMs * 2 + 1000, 15000);
setTimeout(_wsConnect, _wsReconnectMs);
});
return;
}