Verifies a Fetch API Request (an outgoing webhook or an interactions_url request, 11 9), reading its body once as bytes.
Request
interactions_url
The unread request.
The trust list, tolerance and clock as for verifyWebhook.
The verified delivery with its decoded event.
WebhookVerificationError or WebhookConfigError as verifyWebhook does.
export default { async fetch(request: Request): Promise<Response> { const verified = await verifyWebhookRequest(request, { keys: await cache.keys() }); return new Response(null, { status: 204 }); },}; Copy
export default { async fetch(request: Request): Promise<Response> { const verified = await verifyWebhookRequest(request, { keys: await cache.keys() }); return new Response(null, { status: 204 }); },};
Verifies a Fetch API
Request(an outgoing webhook or aninteractions_urlrequest, 11 9), reading its body once as bytes.