🔒 Secure Authentication
HMAC-SHA256 signature-based authentication ensures request integrity and authenticity.
Request signing with HMAC-SHA256 for API integrity and authentication
// Generate HMAC signature
const signature = generateHMAC({
method: 'POST',
path: '/api/data',
headers: {
'x-date': '2025-10-14T03:52:12Z',
'x-request-id': 'bf6c5652-9656-4167-b1d4-10c690a72102',
'x-client-type': 'service'
},
body: '{"message": "Hello from External System"}',
secretKey: 'your-secret-key'
});