shopify-application-proxy-verification
TypeScript icon, indicating that this package has built-in type declarations

1.1.4 • Public • Published

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.' });
};

Dependents (0)

Package Sidebar

Install

npm i shopify-application-proxy-verification

Weekly Downloads

36

Version

1.1.4

License

MIT

Unpacked Size

8.39 kB

Total Files

11

Last publish

Collaborators

  • dkershner6