TrustNXTTrustNXT
React SDKAPI ReferenceFunctions

useProtect()

function useProtect(opts): ProtectControls;

Hook for protecting existing assets (not from camera/audio capture).

const protect = useProtect({ apiKey: 'tnxt_live_...' });
const { protectedBlob } = await protect.protectAsset(file, {
  tags: { source: 'upload' },
});

Parameters

ParameterType
optsUseProtectOptions

Returns

ProtectControls

On this page