A lightweight package for validating Shopify HMAC codes for user and webhook requests.
const { isShopifyHmacValid } = require('shopify-hmac-validator')
isShopifyHmacValid("my_secret", "full_query_string")
const { isShopifyWebhookHmacValid } = require('shopify-hmac-validator')
isShopifyWebhookHmacValid("my_secret", "full_query_string")
See the tests folder in the repo for more examples.