fix(medusa-plugin-brightpearl): set redirect uri

This commit is contained in:
Sebastian Rindom
2020-09-02 10:32:03 +02:00
parent 6c8dd1aebd
commit 4006cad45a

View File

@@ -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,
}