mirror of
https://github.com/DoctorMcKay/node-steamcommunity.git
synced 2026-08-19 13:13:28 +08:00
Modern login in components/login.js listens for 'authenticated' and 'error' events from steam-session's LoginSession, but not the 'timeout' event. When loginTimeout (default 30s) elapses, steam-session emits 'timeout' and calls cancelLoginAttempt() without emitting an 'error' event, causing the Promise to never settle and the login callback to never be called. Add a 'timeout' event listener that rejects the Promise with a descriptive error.