Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
vtalas committed Apr 3, 2024
1 parent 94e8be5 commit 253d454
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/appmixer/shopify/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ module.exports = function(context) {

const { shop } = req.query;
const clientId = encodeURIComponent(context.config.clientId);
const redirect_uri = encodeURIComponent(context.config.appStoreInstallRedirectUri);
const redirectUrl = encodeURIComponent(context.config.appStoreInstallRedirectUri);
const scopes = encodeURIComponent(auth.definition.scope.join(','));

const authUrl = `https://${shop}/admin/oauth/authorize?client_id=${clientId}&redirect_uri=${redirect_uri}&scope=${scopes}`;
const authUrl = `https://${shop}/admin/oauth/authorize?client_id=${clientId}&redirect_uri=${redirectUrl}&scope=${scopes}`;

return h.redirect(authUrl);
},
Expand Down

0 comments on commit 253d454

Please sign in to comment.