Reference / @getenginex/sdk-igaming / SportsbookSession
SportsbookSession
FIRST sportsbook session created by SportsbookApi.createSession.
Sensitive: launchUrl carries the player's operator token (operatorToken). Use it only to open the sportsbook (iframe) and never log it to logs, analytics, error tracking.
Properties
expiresAt
expiresAt:
number
Expiration instant in milliseconds since the epoch (like Date.now()): the client's clock at the moment of the response plus expiresInSeconds * 1000. Reuse the session until expiresAt - 30_000.
expiresInSeconds
expiresInSeconds:
number
Session validity from the response, in seconds (always greater than zero).
launchUrl
launchUrl:
string
FIRST sportsbook URL already with the operator token in the query — do not log it. Always absolute (http/https); a response with anything else is VALIDATION_ERROR.