Logto Webhook Signature Generator
Generate and verify HMAC-SHA256 signatures for Logto webhook requests
Inputs
Provide your signing key and webhook body
Found in Logto Console > Webhooks > Webhook Details
Use the raw body, not the parsed JSON
From the logto-signature-sha-256 header
Generated Signature
Your HMAC-SHA256 signature
Generate a signature to see results here
import { createHmac } from 'node:crypto';
const verify = (signingKey, rawBody, expectedSignature) => {
const hmac = createHmac('sha256', signingKey);
hmac.update(rawBody);
const signature = hmac.digest('hex');
return signature === expectedSignature;
};How It Works
1. Get your Signing Key from Logto Console > Webhooks > Webhook Details
2. Copy the raw webhook body (before any parsing)
3. Click Generate to compute the HMAC-SHA256 signature
4. Compare with expected signature from the logto-signature-sha-256 header
ℹ️ Always use the raw body for signature generation, not the parsed/processed version