mirror of
https://github.com/community-scripts/ProxmoxVE-Local.git
synced 2026-07-28 08:22:43 -04:00
* 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¨>