Interface: NexatronConfig
Configuration for the Nexatron client.
Properties
baseUrl
baseUrl:
string
Base URL of the Nexatron API (e.g. "https://api.nexatron.io").
retry?
optionalretry?:false|RetryConfig
Retry policy for transient failures. Set to false to disable retries.
signal?
optionalsignal?:AbortSignal
Optional AbortSignal applied to every request issued by this client.
tenantId?
optionaltenantId?:string
Optional tenant ID for multi-tenant deployments.
timeoutMs?
optionaltimeoutMs?:number
Per-request timeout in milliseconds. Default: 120000 (120s). Set 0 to disable.
token
token:
string
Authentication token. One of:
- a JWT for a signed-in Nexatron user,
- an
nxa_…service API key (server-side only — never ship one to a browser), - an
nxe_…embed token minted with aviewer_user_idand thequeryscope. This is the one to use in a customer-facing page: every call it authenticates runs as that named viewer, so row-level security, ABAC and column masking resolve for the person looking at the widget rather than for whoever minted the token.