fix: cron jobs and brightpearl auto refresh (#107)

* fix: adds automatic refresh of tokens

* fix: send options to plugin loaders

* fix: adds README optional inventory sync
This commit is contained in:
Sebastian Rindom
2020-09-10 13:33:38 +02:00
committed by GitHub
parent e3d8eea3cd
commit c7bd7838aa
11 changed files with 109 additions and 580 deletions
@@ -41,7 +41,11 @@ class BrightpearlClient {
"content-type": "application/x-www-form-urlencoded",
},
data: qs.stringify(params),
}).then(({ data }) => data)
})
.then(({ data }) => data)
.catch((err) => {
throw err
})
}
constructor(options, onRefreshToken) {