@xtandard/webhooks/receiver
Receiver-side verification helpers — @xtandard/webhooks/receiver.
Zero dependencies, works in any WinterCG runtime (Bun, Node ≥ 20, Deno,
Workers). Verifies webhooks from any Standard Webhooks-compliant sender
— this package, Svix, or anything else that follows the spec — so it is
useful even if the sending side isn’t @xtandard/webhooks.
import { … } from "@xtandard/webhooks/receiver";Also re-exports symbols of @xtandard/webhooks/signing, documented on those pages.
Functions
Section titled “Functions”| Name | Summary |
|---|---|
verifyWebhook |
Verify an incoming Request: reads the raw body, checks the Standard Webhooks headers and signature(s), and returns the parsed envelope. Throws WebhookVerificationError on any failure. |
Interfaces
Section titled “Interfaces”| Name | Summary |
|---|---|
VerifyWebhookOptions |
Options for verifyWebhook. |
Re-exports
Section titled “Re-exports”| Name | Documented on |
|---|---|
WebhookEnvelope |
@xtandard/webhooks/schema |