Verifies an HMAC-SHA256 launch token against the server-held secret.
Called by Sdk.js (React frontend) before proceeding to autosignup.
Verification steps:
launch_* keys stripped)crypto.timingSafeEqual to prevent timing attacksWhen verification fails:
The launch parameters to verify. May include launch_token, launch_nonce, and
launch_timestamp keys (these are stripped during canonicalization before HMAC comparison).
All values are stringified to match the sign-side canonicalization.
The HMAC-SHA256 token returned from sdk-sign
"a1b2c3d4e5f6..."
The nonce returned from sdk-sign
"f47ac10b58cc4372a5670e02b2c3d479"
The timestamp returned from sdk-sign (must be within 10-minute window)
1740500000
Token verified successfully
true