TrustNXTTrustNXT
React SDKAPI ReferenceInterfaces

ProtectionOptions

Configuration for the automatic protection pipeline inside useCapture.

When provided, captured images are queued for cryptographic sealing immediately after takePicture() resolves.

Properties

apiClient

apiClient: unknown;

The SDK API client instance.


apiSecret?

optional apiSecret?: string;

Optional shared secret for encrypted/signed API requests.


autoProtect?

optional autoProtect?: boolean;

When true (default), captures are automatically queued for protection. Set to false for deferred flows where the consumer calls enqueueProtection() manually after additional user input.


cameraData?

optional cameraData?: CameraSettings;

Optional pre-extracted camera settings (e.g., from EXIF).


features?

optional features?: Features;

Optional feature flags / metadata to embed in the seal.


tags?

optional tags?: Record<string, string>;

Custom metadata tags applied to protected assets.

On this page