@shopify/shopify-api
Version:
Shopify API Library for Node - accelerate development with support for authentication, graphql proxy, webhooks
13 lines (11 loc) • 474 B
JavaScript
/**
* 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');
}
export { getHostValue };
//# sourceMappingURL=get-host-value.mjs.map