Engineering ·
Unifying JWT, Cookie, and Frontend Login Expiry Policies
The JWT lifetime is 2 hours, but users get logged out after 1. Cookie lifetime, sliding refresh while the user is active, a frontend timer: 4 layers each had their own clock. Here's how we unified them into a single source of truth: server env vars in one place.