Skip to content

verifyRenderSignature

verifyRenderSignature(body, header, secret, nowSeconds, toleranceSeconds?): Promise<boolean>

Checks a signature header against the raw request bytes. The comparison is constant-time. nowSeconds and the tolerance bound the request’s age in both directions; pass Infinity for the tolerance only in a test.

Uint8Array

string | null | undefined

string

number

number = RENDER_TOLERANCE_SECONDS

Promise<boolean>