createScenaroClient
ScenaroClientConfig
ScenaroClient methods
identifyUser
POST /public/token — returns JWT identity. Idempotent if valid token exists in storage.
startSession
POST /public/session — returns Transport credentials (LiveKit today: livekit_token,
livekit_url — see Transport). Requires stored JWT. When language
is omitted, the backend applies the language configured on the scenario.
getValidUserToken
getStoredUserToken
clearStoredSession
getSessionUserId / getSessionApplicationId
JWT utilities
Storage exports
Types
Re-exported from@scenaro/sdk/protocol:
IdentityResponsePublicTokenRequest/PublicTokenResponsePublicSessionRequest/PublicSessionResponseSessionOptions