Xero - beautiful accounting software

Xero Developer Help Center

Xero Developer Community

Community > Add-ons >

In Webhooks, Intent to receive fails using NodeJS.

Started by Xero API Access -   in Add-ons

I am trying to validate Intent to receive in NodeJS. Here is my code snippet:-

let webhooksKey = 'XXXXXXXXXXXXXXXXXXXXXXXXX==';
let computedSignature = crypto.createHmac('sha256', webhooksKey)
.update(request.body.toString()).digest('base64');

My computed hash signature never matches with xero signature received from headers.

Does anyone solved this issue?