shopify-hmac-validator
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Shopify HMAC Validator

A lightweight package for validating Shopify HMAC codes for user and webhook requests.

Usage

Validate the HMAC of a user request:

const { isShopifyHmacValid } = require('shopify-hmac-validator')
isShopifyHmacValid("my_secret", "full_query_string")

Validate the HMAC of a webhook request:

const { isShopifyWebhookHmacValid } = require('shopify-hmac-validator')
isShopifyWebhookHmacValid("my_secret", "full_query_string")

More examples

See the tests folder in the repo for more examples.

Dependencies (0)

    Dev Dependencies (8)

    Package Sidebar

    Install

    npm i shopify-hmac-validator

    Weekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    11.6 kB

    Total Files

    12

    Last publish

    Collaborators

    • davidplumridge