UNPKG

@shopify/shopify-api

Version:

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

15 lines (12 loc) 500 B
'use strict'; /** * Creates a fake Base64Encoded host for the store name to use when faking authorization in testing. * * @param store The store name for which to create a fake Base64Encoded host to use when faking authorization in testing. * @returns A fake Base64Encoded host for the store name. */ function getHostValue(store) { return Buffer.from(`admin.shopify.com/store/${store}`).toString('base64'); } exports.getHostValue = getHostValue; //# sourceMappingURL=get-host-value.js.map