import {vouchID} from 'vouch-sdk';
await vouch.verify(user);
const {isHuman} = result;
Drop-in client-side check (like CAPTCHA, but invisible)
<script src="https://api.vouchid.com/v1/vaptcha.js"></script>
Server-side verification + dedup enforcement
const { isVerified } = await vouch.verify(token);
Platform-specific pseudonymous user ID
const { scopedId } = await vouch.getScopedIdentity();
Listen for trust revocation, updates, ban linkage
app.post('/webhook', (req, res) => {
const { event, scopedId } = req.body;
});
// 1. Add the vouchID script to your page
<script src="https://api.vouchid.com/v1/vouch.js"></script>
// 2. Initialize vouchID
const vouch = vouchID('YOUR_API_KEY');
// 3. Verify a user
document.getElementById('login-form').addEventListener('submit', async (event) {
event.preventDefault();
const result = await vouch.verify();
if (result.isHuman) {
// Continue with form submission
event.target.submit();
} else {
// Show error message
alert('Please verify you are human');
}
});