Configuration
Reference for TPSentinel.create options
Configuration
Create an SDK instance with TPSentinel.create(...).
import { TPSentinel } from '@testpress/sentinel-core'
const sentinel = TPSentinel.create({
orgCode: 'your-org',
sessionId: 'session-id',
token: 'session-token',
})Init options
orgCode
orgCode: stringThe Sentinel organization identifier for the session.
sessionId
sessionId: stringThe session identifier returned by your backend.
token
token: stringThe session token returned by your backend for that session.
Runtime helpers
You can also inspect current SDK state at runtime:
sentinel.getState()
sentinel.getPendingUserAction()