UNPKG

@shopify/shopify-api

Version:

Shopify API Library for Node - accelerate development with support for authentication, graphql proxy, webhooks

14 lines (10 loc) 273 B
'use strict'; var crypto = require('crypto'); function getHmac(body, apiSecretKey) { return crypto .createHmac('sha256', apiSecretKey) .update(body, 'utf8') .digest('base64'); } exports.getHmac = getHmac; //# sourceMappingURL=get-hmac.js.map