React SDKAPI ReferenceInterfaces
UseProtectOptions
Properties
apiKey?
optional apiKey?: string;API key for the TrustNXT protection API.
apiSecret?
optional apiSecret?: string;Shared secret for encrypted/signed API requests.
baseUrl?
optional baseUrl?: string;Override the default API base URL.
locationProvider?
optional locationProvider?: LocationProvider;Adapter for GPS location (default: browser geolocation).
protection?
optional protection?: ProtectionOptions;Advanced: provide a pre-built ProtectionOptions object instead of apiKey.
sandbox?
optional sandbox?: boolean;Use sandbox environment (default: false).