Verify a webhook signature
Confirm a delivery really came from Fluveo before you trust it.
Every delivery is signed with HMAC-SHA256 and carries a Fluveo-Signature header
(plus a compatibility Stripe-Signature). Verify it against your endpoint’s
whsec_… secret before parsing the body, and always verify the raw body —
before any JSON parsing re-serializes a byte. This recipe uses the SDK helpers;
for the full contract, replay rules, and retry behaviour see Webhooks.
Already using a Stripe verifier? Point stripe.webhooks.constructEvent(...) at
the Stripe-Signature header and your whsec_… secret — it works unchanged.
Keep handlers idempotent (key on the event id); deliveries can repeat.