Identity Verification

Identity Verification

Secure your widget with HMAC identity verification to prevent visitor impersonation.

Why Use Identity Verification?

Without verification, anyone could pass fake visitor data to your widget. Identity verification ensures:

Setup

#### 1. Get Your Secret Key

Go to Settings > Security and copy your Identity Secret.

#### 2. Generate the Signature (Server-Side)

JavaScript
const crypto = require('crypto');

function generateHalSignature(visitorId, secret) {
  return crypto
    .createHmac('sha256', secret)
    .update(visitorId)
    .digest('hex');
}

#### 3. Pass to Widget

JavaScript
window.HalSettings = {
  visitor: {
    id: 'user-123',
    name: 'John Doe',
    signature: 'abc123...' // From your server
  }
};