@orangecheck/webhook-verify / sign
Function: sign()
function sign(secret: string, rawBody: string | Uint8Array<ArrayBufferLike>): string;
Defined in: index.ts:91
Compute the expected signature for a given body. Useful for tests on the customer side — generate the sig, attach it to a fake request, verify the receiver accepts it.
Parameters
| Parameter | Type |
|---|---|
secret | string |
rawBody | string | Uint8Array<ArrayBufferLike> |
Returns
string