1.0.1 • Published 3 years ago

shopify-verify-webhook v1.0.1

Weekly downloads
50
License
MIT
Repository
github
Last release
3 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

4 years ago

1.0.2

4 years ago

1.0.1

3 years ago

1.0.0

4 years ago