diff --git a/routes/index.js b/routes/index.js index 3bde606..d30b829 100644 --- a/routes/index.js +++ b/routes/index.js @@ -15,7 +15,7 @@ module.exports = function createRouter(shopifyConfig) { '/api', rawParser, verifyApiCall, - shopifyApiProxy, + shopifyApiProxy ); return router; diff --git a/routes/shopifyAuth.js b/routes/shopifyAuth.js index 2d3ada1..38a1931 100644 --- a/routes/shopifyAuth.js +++ b/routes/shopifyAuth.js @@ -9,7 +9,7 @@ module.exports = function createShopifyAuthRoutes({ scope, afterAuth, shopStore, - accessMode, + accessMode }) { return { // This function initializes the Shopify OAuth Process @@ -42,14 +42,14 @@ module.exports = function createShopifyAuthRoutes({ window.top.location.href = "${redirectTo}?${querystring.stringify(redirectParams)}" - `, + ` ); }, // 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;