@labdigital/commercetools-mock 2.12.1 → 2.12.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@labdigital/commercetools-mock",
3
3
  "author": "Michael van Tellingen",
4
- "version": "2.12.1",
4
+ "version": "2.12.2",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.cjs",
7
7
  "module": "dist/index.js",
@@ -171,7 +171,8 @@ export class OAuth2Server {
171
171
  )
172
172
  return response.status(200).send(token)
173
173
  } else if (grantType === 'refresh_token') {
174
- const refreshToken = request.query.refresh_token?.toString()
174
+ const refreshToken =
175
+ request.query.refresh_token?.toString() || request.body.refresh_token
175
176
  if (!refreshToken) {
176
177
  return next(
177
178
  new CommercetoolsError<InvalidRequestError>(