Zero Trust · January 2025

JWT expiration strategy for SaaS platforms

Your JWT lifetime policy influences breach impact, refresh architecture, and compliance posture. Here is how leading SaaS platforms set expirations.

Recommended lifetimes

Token typeSuggested expNotes
Interactive access tokens5–15 minutesCombine with silent refresh or short session cookies.
API tokens1–5 minutesUse client credentials to obtain new tokens.
Refresh tokens7–30 daysRotate on every use; revoke on anomaly detection.

Rotation patterns

Implement refresh token rotation so stolen tokens become useless. Track `jti` values and bind refresh tokens to device identifiers.

Incident response

Automation tip

JWTSecrets Enterprise enforces maximum exp per application and rejects tokens that exceed policy. It also emits structured events for your SIEM.

Enforce expirations automatically