Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
docs(sdk): say the webhook signature helpers have shipped
Yudhi Armyndharis2d9b5e2ffa7b
diff --git a/docs/06-api-specification.md b/docs/06-api-specification.mdindex d01b8c815..a7cff1bd0 100644--- a/docs/06-api-specification.md+++ b/docs/06-api-specification.md@@ -7299,7 +7299,7 @@ function verify(rawBody, header, secret) {}```-Complete Express and FastAPI receivers are in [`examples/webhook-signature-verification.md`](examples/webhook-signature-verification.md). From the next SDK release (after 0.5.0), the SDKs ship this check: `verifyWebhookSignature` (JavaScript), `verify_webhook_signature` (Python), `VerifyWebhookSignature` (Go), `WebhookSignature.verify` (Java) and `WebhookSignature::verify` (PHP).+Complete Express and FastAPI receivers are in [`examples/webhook-signature-verification.md`](examples/webhook-signature-verification.md). Since SDK 0.5.1, the SDKs ship this check: `verifyWebhookSignature` (JavaScript), `verify_webhook_signature` (Python), `VerifyWebhookSignature` (Go), `WebhookSignature.verify` (Java) and `WebhookSignature::verify` (PHP).If no `secret` is configured the `X-OpenWA-Signature` header is omitted entirely.diff --git a/docs/examples/webhook-signature-verification.md b/docs/examples/webhook-signature-verification.mdindex 4f66660bd..66ae00615 100644--- a/docs/examples/webhook-signature-verification.md+++ b/docs/examples/webhook-signature-verification.md@@ -24,7 +24,7 @@ The digest is computed over the exact raw request body bytes using the webhook s## With an OpenWA SDK-From the next SDK release (after 0.5.0), each SDK ships this check. Pass the raw body, the `X-OpenWA-Signature` header value and the secret; the helper returns false for a missing, malformed or wrong signature and compares in constant time.+Since SDK 0.5.1, each SDK ships this check. Pass the raw body, the `X-OpenWA-Signature` header value and the secret; the helper returns false for a missing, malformed or wrong signature and compares in constant time.| SDK | Call || ---------- | ------------------------------------------------------- |