Skip to content
This repository was archived by the owner on Jul 14, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = function createRouter(shopifyConfig) {
'/api',
rawParser,
verifyApiCall,
shopifyApiProxy,
shopifyApiProxy
);

return router;
Expand Down
6 changes: 3 additions & 3 deletions routes/shopifyAuth.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = function createShopifyAuthRoutes({
scope,
afterAuth,
shopStore,
accessMode,
accessMode
}) {
return {
// This function initializes the Shopify OAuth Process
Expand Down Expand Up @@ -42,14 +42,14 @@ module.exports = function createShopifyAuthRoutes({
window.top.location.href = "${redirectTo}?${querystring.stringify(redirectParams)}"
</script>
</head>
</html>`,
</html>`
);
},

// Users are redirected here after clicking `Install`.
// The redirect from Shopify contains the authorization_code query parameter,
// which the app exchanges for an access token
async callback(request, response, next) {
callback: async (request, response, next)=> {
const { query } = request;
const { code, hmac, shop } = query;

Expand Down