The Modern Security Reality
Traditional single-token authentication mechanisms are fundamentally inadequate for enterprise applications. When a long-lived JWT token is compromised via XSS or proxy interception, attackers maintain unfettered access until token expiration.
The Dual-Token Security Model
EXZAZON adopts an unyielding defense-in-depth model combining short-lived 15-minute access tokens with 7-day secure HTTP-only refresh tokens.
SHA-256 Refresh Token Hashing
Never store raw refresh tokens in the database. When client submits a refresh request, hash the incoming secret using SHA-256 before querying.
Token Family Tracking
Each refresh token belongs to a cryptographically unique
familyId. If a revoked or already-exchanged token is presented, the backend assumes token theft and immediately terminates the entire token family, logging out all fraudulent and legitimate sessions.Constant-Time Verification
All authentication comparison operations utilize constant-time algorithms to thwart timing attacks.