Wondering what’s next for npm?Check out our public roadmap! »

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

    Install

    npm i shopify-application-proxy-verification

    DownloadsWeekly Downloads

    29

    Version

    1.1.4

    License

    MIT

    Unpacked Size

    8.39 kB

    Total Files

    11

    Last publish

    Collaborators

    • avatar