@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/dist/index.cjs CHANGED
@@ -1489,7 +1489,7 @@ var OAuth2Server = class {
1489
1489
  );
1490
1490
  return response.status(200).send(token);
1491
1491
  } else if (grantType === "refresh_token") {
1492
- const refreshToken = request.query.refresh_token?.toString();
1492
+ const refreshToken = request.query.refresh_token?.toString() || request.body.refresh_token;
1493
1493
  if (!refreshToken) {
1494
1494
  return next(
1495
1495
  new CommercetoolsError(