1.0.1 • Published 5 years ago

shopify-verify-webhook v1.0.1

Weekly downloads
50
License
MIT
Repository
github
Last release
5 years ago

shopify-verify-webhook

const verifyWebhookIntegrity = require('shopify-verify-webhook');

function someHttpRequest(req){
  const isValid = verifyWebhookIntegrity(
    process.env.SHOPIFY_WEBHOOK_SIGNATURE, 
    req.headers['x-shopify-hmac-sha256'],
    req.body);
  
  if(isValid){
    // happy days
  }else {
    // this request did not originate from shopify
  }
}
1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago