Skip to main content

Variable: JWT\_CONSTANTS

Gala Launchpad SDK 9.0.0-rc.5


Gala Launchpad SDK 9.0.0-rc.5 / index / JWT_CONSTANTS

Variable: JWT_CONSTANTS

const JWT_CONSTANTS: object

Defined in: packages/launchpad-sdk/dist/constants/jwt.d.ts:12

JWT Authentication Constants

Type Declaration​

AUTH_HEADER​

readonly AUTH_HEADER: "Authorization"

Authorization header name

BEARER_PREFIX​

readonly BEARER_PREFIX: "Bearer "

Bearer token prefix

DEFAULT_EXPIRY_S​

readonly 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​

readonly LOGIN_MESSAGE_PREFIX: "Sign in to Launchpad t:"

Message prefix for signing login requests Must match backend's expected format exactly

REFRESH_THRESHOLD_MS​

readonly 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