fix(medusa-plugin-brightpearl): reliable oauth (#119)

This commit is contained in:
Sebastian Rindom
2020-10-05 11:48:20 +02:00
committed by GitHub
parent a06d603722
commit 0889059ba1
5 changed files with 37 additions and 41 deletions
+2 -1
View File
@@ -83,8 +83,9 @@ class Oauth extends OauthService {
})
}
async refreshToken(appName, refreshToken) {
async refreshToken(appName) {
const app = await this.retrieveByName(appName)
const refreshToken = app.data.refresh_token
const service = this.container_[`${app.application_name}Oauth`]
if (!service) {
throw new MedusaError(