73e953f57986c7b21a30c87776885dd4a543eb19
KEY INSIGHT: - 500 = cookie expiration (early signal, re-login immediately) - 502/503/504 = real server outage (bad gateway, service unavailable, gateway timeout) BEHAVIOR: - On 500: throw AuthenticationError → immediate re-login - On 502/503/504: preserve cache, don't re-login (server is down) - On 401/403: throw AuthenticationError → re-login This prevents unnecessary re-login attempts during actual server outages while still handling cookie expiration immediately.
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
Languages
TypeScript
98.1%
Dockerfile
1.1%
Shell
0.8%