Returns the webhook-signature value the server would send: the v1a entries first in seed order, then the v1 entries in the given order, separated by one space, each <scheme>,<standard base64> over {id}.{timestamp}.{body}.
webhook-signature
v1a
v1
<scheme>,<standard base64>
{id}.{timestamp}.{body}
The delivery, the seeds and the secrets.
The header value.
RangeError for a seed of another length; WebhookConfigError for a malformed secret.
RangeError
WebhookConfigError
const header = signWebhook({ id, timestamp: 1760346000, body, seeds: [seed] }); Copy
const header = signWebhook({ id, timestamp: 1760346000, body, seeds: [seed] });
Returns the
webhook-signaturevalue the server would send: thev1aentries first in seed order, then thev1entries in the given order, separated by one space, each<scheme>,<standard base64>over{id}.{timestamp}.{body}.