BeechCMS / @beechcms/client / constructWebhookEvent
Function: constructWebhookEvent()
constructWebhookEvent<
T>(options):Promise<T>
Verifies the HMAC signature and deserializes the JSON payload into type T. Throws WebhookVerificationError on missing parameters or cryptographic signature failure. Lets SyntaxError surface naturally if JSON parsing fails on a valid payload.
Type Parameters
T
T = Record<string, unknown>
Parameters
options
Returns
Promise<T>