1.1.4 • Published 4 years ago

shopify-application-proxy-verification v1.1.4

Weekly downloads
17
License
MIT
Repository
github
Last release
4 years ago

shopify-application-proxy-verification

Simple function to verify Shopify Application Proxy requests using HMAC

This package has no dependencies and is very tiny.

Installation

npm i shopify-application-proxy-verification

Usage

import verifyAppProxyHmac from 'shopify-application-proxy-verification';

const verifyAppProxyRequest = (req, res, next) => {
    if ((verifyAppProxyHmac(req.query), process.env.SHOPIFY_SECRET)) {
        return next();
    }
    return res.status(403).json({ errorMessage: 'I don\t think so.' });
};
1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago