TPSentinel LogoTPSentinel

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: string

The Sentinel organization identifier for the session.

sessionId

sessionId: string

The session identifier returned by your backend.

token

token: string

The session token returned by your backend for that session.

Runtime helpers

You can also inspect current SDK state at runtime:

sentinel.getState()
sentinel.getPendingUserAction()

On this page