Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
vtalas committed Mar 28, 2024
1 parent fdd1614 commit 37516fb
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/appmixer/shopify/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ module.exports = function(context) {
options: {
handler: () => {
return CustomerDataRequest.find() || [];
},
auth: false
}
}
});

Expand All @@ -79,8 +78,7 @@ module.exports = function(context) {
options: {
handler: () => {
return CustomerRedactRequest.find() || [];
},
auth: false
}
}
});

Expand All @@ -90,8 +88,7 @@ module.exports = function(context) {
options: {
handler: () => {
return ShopRedactRequest.find() || [];
},
auth: false
}
}
});

Expand All @@ -117,6 +114,12 @@ module.exports = function(context) {

};

/**
* verify HMAC token from Shopify
* https://shopify.dev/docs/apps/webhooks/configuration/https#step-5-verify-the-webhook
* @param req
* @param secret
*/
const verifyHmac = function(req, secret) {

const expected = req.headers['x-shopify-hmac-sha256'];
Expand Down

0 comments on commit 37516fb

Please sign in to comment.