@orangecheck/webhook-verify / verify
Function: verify()
function verify(input: VerifyInput): boolean;
Defined in: index.ts:61
Returns true iff the signature is a valid HMAC-SHA256 of rawBody under secret. Uses timing-safe compare so a malicious server can't byte-by- byte probe the expected sig.
Parameters
| Parameter | Type |
|---|---|
input | VerifyInput |
Returns
boolean