Variable: JWT\_CONSTANTS
Gala Launchpad SDK 9.0.0-rc.5 / index / JWT_CONSTANTS
Variable: JWT_CONSTANTS
constJWT_CONSTANTS:object
Defined in: packages/launchpad-sdk/dist/constants/jwt.d.ts:12
JWT Authentication Constants
Type Declaration
AUTH_HEADER
readonlyAUTH_HEADER:"Authorization"
Authorization header name
BEARER_PREFIX
readonlyBEARER_PREFIX:"Bearer "
Bearer token prefix
DEFAULT_EXPIRY_S
readonlyDEFAULT_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
readonlyLOGIN_MESSAGE_PREFIX:"Sign in to Launchpad t:"
Message prefix for signing login requests Must match backend's expected format exactly
REFRESH_THRESHOLD_MS
readonlyREFRESH_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