fix(medusa-plugin-brightpearl): reliable oauth (#119)
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user