View as Markdown

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

rawBodystringRequired
headerstring | undefined | nullRequired
secretstringRequired
optsWebhookVerifyOptions

Returns

Promise<WebhookVerifyResult>

HTTP operation

Runs locally, with no request to the API.

Was this page helpful? Send us feedback

LLM? Read llms.txt.