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
| Parameter | Type |
|---|---|
opts | UseProtectOptions |