Verificar una firma de webhook
hilo_verify_webhook_signatureVerify a webhook signature against the raw body and secret. Debug handler rejections by checking if the signature was computed from re-serialized JSON instead of the raw body.
Instructions
Comprueba si una firma corresponde a un cuerpo y un secreto, con la misma fórmula que usa Hilo. Úsala para depurar cuando tu handler rechaza eventos legítimos: casi siempre es porque se firmó el JSON re-serializado en vez del cuerpo crudo.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| secret | Yes | Tu statusWebhookSecret. | |
| rawBody | Yes | Cuerpo crudo recibido, exactamente como llegó. | |
| signature | Yes | Valor del header X-Hilo-Signature (incluye 'sha256='). |