bothy-sdk
    Preparing search index...

    Function signWebhook

    • 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}.

      Parameters

      Returns string

      The header value.

      RangeError for a seed of another length; WebhookConfigError for a malformed secret.

      const header = signWebhook({ id, timestamp: 1760346000, body, seeds: [seed] });