Closed mrashed-dev closed 1 year ago
Actually, @mrashed-dev could we not obtain the secret from the Client itself? If setup? Normally most users would probably setup the Nylas Client as well to expand the deltas.
@AaronDDM good call out, made it an optional override, will default to whatever the SDK was configured with.
the second param of verifyWebhookSignature is a buffer, do you mean to pass Buffer.from(JSON.stringify(req.body), 'utf8') ?
Description
This PR adds support for verifying the webhook signature of inbound webhook notifications.
Usage
License
I confirm that this contribution is made under the terms of the MIT license and that I have the authority necessary to make this contribution on behalf of its copyright owner.