@hcsdigital/safeverify
v1.0.0
Published
An advanced, AI-driven security platform to protect your applications from bots and automated threats.
Downloads
10
Readme
HCS SafeVerify SDK
This is the official client-side SDK for HCS SafeVerify, an advanced, AI-driven security platform designed to protect your applications from bots and automated threats.
Installation
npm install @hcsdigital/safeverifyUsage
Use the HCSafeVerify class to verify requests on your server or in a server-side function.
import { HCSafeVerify } from '@hcsdigital/safeverify';
async function handleProtectedAction(request) {
const { isVerified, action, threatScore } =
await HCSafeVerify.verifyRequest({
apiKey: 'YOUR_SAFEVERIFY_API_KEY',
});
if (!isVerified) {
// Block the request or show a CAPTCHA based on the 'action'
throw new Error('Verification failed!');
}
// Proceed with your application logic...
}This SDK is currently a simulation for the HYOTIA Cloud Service prototype.
