71116f9f6e726b6108b7f6a4d6f18fe85b884508
KEY DISCOVERY: 5xx errors are early signs of cookie expiration. The backend returns 500 when cookie is expired but session not yet invalidated. It takes several hours before it returns 401/403. CHANGES: 1. On 5xx: throw AuthenticationError to trigger immediate re-login 2. Removed cookie validation logic (no longer needed) 3. Cache still preserved during re-login process 4. Re-login happens within same request, not on next request This fixes the issue where expired cookies would cause 5xx errors for hours before any re-login attempt was made.
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%