JamesFlare1212 f21a400c82 fix(auth): prevent cookie loss during remote server timeout storms
Server timeouts caused orphaned fetchActivityData calls to fire clearCookieCache()
asynchronously, destroying cookies for all concurrent callers. Three fixes:

1. Replace Promise.race timeout with AbortController to properly cancel
   orphaned fetches and prevent delayed clearCookieCache() calls
2. Add cookie backup/restore — backupCookies() before clearCookieCache(),
   restoreCookieBackup() if re-login fails, so cookies are never lost
3. Add 15s auth failure throttle to block thundering herd re-logins when
   server slowdowns generate many 500 errors simultaneously
2026-04-23 03:06:15 -04:00
2025-05-12 21:45:57 -04:00
2026-04-07 18:19:13 -04:00
2026-04-07 18:19:13 -04:00
2025-05-10 23:39:39 -04:00
2025-05-10 23:39:39 -04:00

How to Run

copy example.env

cp example.env .env

edit .env

API_USERNAME is your engage username in URL-encode.
API_PASSWORD is your engage password in URL-encode.

Description
No description provided
Readme 639 KiB
Languages
TypeScript 98.1%
Dockerfile 1.1%
Shell 0.8%