fix(medusa-plugin-brightpearl): set redirect uri
This commit is contained in:
@@ -15,8 +15,7 @@ class BrightpearlOauth extends OauthService {
|
|||||||
const client_id = "medusa-dev"
|
const client_id = "medusa-dev"
|
||||||
const client_secret = CLIENT_SECRET
|
const client_secret = CLIENT_SECRET
|
||||||
const state = randomize("A0", 16)
|
const state = randomize("A0", 16)
|
||||||
const redirect =
|
const redirect = "https://tekla.medusa-commerce.com/a/oauth/brightpearl"
|
||||||
"https://tekla-staging-admin.medusa-commerce.com/a/oauth/brightpearl"
|
|
||||||
return {
|
return {
|
||||||
application_name: "brightpearl",
|
application_name: "brightpearl",
|
||||||
display_name: "Brightpearl",
|
display_name: "Brightpearl",
|
||||||
@@ -40,8 +39,7 @@ class BrightpearlOauth extends OauthService {
|
|||||||
const params = {
|
const params = {
|
||||||
client_id: "medusa-dev",
|
client_id: "medusa-dev",
|
||||||
client_secret: CLIENT_SECRET,
|
client_secret: CLIENT_SECRET,
|
||||||
redirect:
|
redirect: "https://tekla.medusa-commerce.com/a/oauth/brightpearl",
|
||||||
"https://tekla-staging-admin.medusa-commerce.com/a/oauth/brightpearl",
|
|
||||||
code,
|
code,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user