Skip to content

BeechCMS


BeechCMS / @beechcms/core / signWebhookBody

Function: signWebhookBody() ​

signWebhookBody(body, secret): Promise<string>

Signs a raw request body. Returns sha256=<hex>.

Parameters ​

body ​

string

secret ​

string

Returns ​

Promise<string>