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.
Parameters
Section titled “Parameters”Uint8Array
header
Section titled “header”string | null | undefined
secret
Section titled “secret”string
nowSeconds
Section titled “nowSeconds”number
toleranceSeconds?
Section titled “toleranceSeconds?”number = RENDER_TOLERANCE_SECONDS
Returns
Section titled “Returns”Promise<boolean>