From 4006cad45a4498541f5d2684c1a816cbf15e3d7e Mon Sep 17 00:00:00 2001 From: Sebastian Rindom Date: Wed, 2 Sep 2020 10:32:03 +0200 Subject: [PATCH] fix(medusa-plugin-brightpearl): set redirect uri --- packages/medusa-plugin-brightpearl/src/services/oauth.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/medusa-plugin-brightpearl/src/services/oauth.js b/packages/medusa-plugin-brightpearl/src/services/oauth.js index 6aecc55bd6..5094a32e7d 100644 --- a/packages/medusa-plugin-brightpearl/src/services/oauth.js +++ b/packages/medusa-plugin-brightpearl/src/services/oauth.js @@ -15,8 +15,7 @@ class BrightpearlOauth extends OauthService { const client_id = "medusa-dev" const client_secret = CLIENT_SECRET const state = randomize("A0", 16) - const redirect = - "https://tekla-staging-admin.medusa-commerce.com/a/oauth/brightpearl" + const redirect = "https://tekla.medusa-commerce.com/a/oauth/brightpearl" return { application_name: "brightpearl", display_name: "Brightpearl", @@ -40,8 +39,7 @@ class BrightpearlOauth extends OauthService { const params = { client_id: "medusa-dev", client_secret: CLIENT_SECRET, - redirect: - "https://tekla-staging-admin.medusa-commerce.com/a/oauth/brightpearl", + redirect: "https://tekla.medusa-commerce.com/a/oauth/brightpearl", code, }