Never wait 15 minutes to test your token expiration error handlers or silent background refresh routines. Request valid cryptographic JWTs with custom micro-lifespans (5s, 15s, 1m) or trigger already-expired tokens on demand.
Choose a lifespan duration below to load into the console and test token invalidation:
Playground API supports both header-based and request body configuration parameters:
| Transport | Key / Field | Supported Syntax | Description |
|---|---|---|---|
| HTTP Header | X-Simulate-JWT-Expiry | "5s", "15s", "1m", "-1s" | Overrides access token lifespan without modifying request payload. |
| JSON Body | token_ttl | 5, 10, 30, 60 | Integer seconds defining precise token lifetime. |
| JSON Body | expiresIn / expires_in | "5s", "10m", "1h" | String duration format compatible with the ms library. |
Frontend patterns for proactive silent token renewal before expiration occurs: