Skip to content

Instantly share code, notes, and snippets.

Client.prototype.webhookValid = function webhookValid(params) {
if (!params) {
return false;
}
if (!params.payload) {
return false;
}
return Signer.verify(params.payload, this.config.appSecret);
};