bothy-sdk
    Preparing search index...

    Interface VerifyWebhookTrust

    What verifyWebhook needs besides the request.

    interface VerifyWebhookTrust {
        keys?: readonly (string | KeyObject)[];
        now?: () => number;
        secrets?: readonly (string | Uint8Array<ArrayBufferLike>)[];
        toleranceMs?: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    keys?: readonly (string | KeyObject)[]

    Trusted v1a public keys: parsed keys or their whpk_ form, normally the result of WebhookKeyCache.keys(). Never taken from the request.

    now?: () => number

    The own clock, Unix milliseconds; default Date.now.

    secrets?: readonly (string | Uint8Array<ArrayBufferLike>)[]

    Trusted v1 secrets: their whsec_ form or the raw key bytes.

    toleranceMs?: number

    Largest distance of webhook-timestamp to VerifyWebhookTrust.now in milliseconds; default webhook.receiver_tolerance.