Files
ProxmoxVE-Local/src
Macéo JALBERT 62bcfe0012 feat: add JWT expiry validation and refactor magic numbers (#612)
* feat: add JWT expiry validation and refactor magic numbers

- Decode JWT in WebSocket auth to reject expired tokens and log auth failures.
- Introduce constants `OUTPUT_BUFFER_MAX_LENGTH`, `BACKUP_UPDATE_DELAY_MS`, and `JWT_EXP_MS_FACTOR`.
- Replace hardcoded buffer length and delay values with the new constants.
- Coerce `AUTH_ENABLED` and `AUTH_SETUP_COMPLETED` to boolean and add `AUTH_SESSION_DURATION_DAYS` env.

* refactor: remove unused and  confusing WEBSOCKET_PORT env variable

---------

Co-authored-by: Vivelis <¨maceo.jalbert@gmail.com¨>
2026-06-13 18:24:26 +02:00
..