Add session TTL and disconnect auto-logout to Auth; fix export presets
- Auth.gd: discard saved sessions older than 30 days on load (saved_at timestamp) - Auth.gd: auto-logout and return to login screen after 30 min disconnected - Auth.gd: cancel auto-logout timer immediately on reconnect - Auth.gd: emit session_expired signal for any listener that needs it - Network.gd: enable debug_log_packets for easier debugging - export_presets.cfg: updated to full Godot 4.5 web preset (variant/thread_support, custom_template paths, PWA options) — fixes web CI build Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
@@ -16,7 +16,7 @@ extends Node
|
||||
const SERVER_URL := "wss://hub.aeternalisgames.com/ws"
|
||||
|
||||
## Print every sent/received packet as JSON to stdout.
|
||||
@export var debug_log_packets: bool = false
|
||||
@export var debug_log_packets: bool = true
|
||||
|
||||
const KEEPALIVE_INTERVAL_SEC := 30.0 ## Idle seconds before sending an app-level ping.
|
||||
const KEEPALIVE_TIMEOUT_SEC := 30.0 ## Seconds with no reply before forcing a reconnect.
|
||||
|
||||
Reference in New Issue
Block a user