Security
The high-level SDK keeps launch credentials and billing identity out of application code.
- Use
createMythos()orcreate_mythos()instead of parsing launch tokens. - Never store Mythos tokens in
localStorageorsessionStorage. - Keep
MYTHOS_SESSION_SECRETserver-side, at least 32 characters, and set it in the deployment host. - Set
MYTHOS_KEYfrom Dashboard → Settings → Mythos key to bind launch, handshake and callback tokens to your Producer. Missing is soft in 0.5.0; required in 0.6.0. Static listing launches without a key remain silent. Update deployment env after regeneration. - Mismatch logs include only the endpoint and
listingId; never log the key,pkh, or token. See Producer binding. - Serve production apps over HTTPS because the session cookie requires
Secure. - Call
confirmChargebefore every billable action and callchargeonly on the server. - Reuse a client-generated
idempotencyKeywhen retrying the same fixed-price action. - Map
MythosErrorto its provided HTTP status instead of exposing internal errors.
The SDK verifies signed launch data, enforces single-use launch exchange, and manages cookie-first session transport. See Browser client and Errors.