SDK reference · Verifiers
verifyWebhookSignature
verifyWebhookSignature in @provenanceauth/sdk, Verifiers. Verify a Provenance-Signature header against the raw delivery body and your endpoint secret.
Signature
verifyWebhookSignature(rawBody: string, header: string | undefined | null, secret: string, opts?: WebhookVerifyOptions): Promise<WebhookVerifyResult>Parameters
rawBodystringRequiredheaderstring | undefined | nullRequiredsecretstringRequiredoptsWebhookVerifyOptions
Returns
Promise<WebhookVerifyResult>
HTTP operation
Runs locally, with no request to the API.