index/variables/JWT_CONSTANTS.md
const JWT_CONSTANTS: object
JWT Authentication Constants
Type Declaration
| Name | Type | Description |
|---|
AUTH_HEADER | "Authorization" | Authorization header name |
BEARER_PREFIX | "Bearer " | Bearer token prefix |
DEFAULT_EXPIRY_S | 86400 | Default token expiry in seconds (24 hours) Backend sends this in the login response, but we use this as fallback |
LOGIN_MESSAGE_PREFIX | "Sign in to Launchpad t:" | Message prefix for signing login requests Must match backend's expected format exactly |
REFRESH_THRESHOLD_MS | number | Refresh token if it expires within this time (default 5 minutes) Auto-refresh is triggered during requests when token is close to expiry |
auth header bearer prefix default expiry login message refresh threshold ms