@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 +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/oauth/server.ts +2 -1
package/dist/index.js
CHANGED
|
@@ -1452,7 +1452,7 @@ var OAuth2Server = class {
|
|
|
1452
1452
|
);
|
|
1453
1453
|
return response.status(200).send(token);
|
|
1454
1454
|
} else if (grantType === "refresh_token") {
|
|
1455
|
-
const refreshToken = request.query.refresh_token?.toString();
|
|
1455
|
+
const refreshToken = request.query.refresh_token?.toString() || request.body.refresh_token;
|
|
1456
1456
|
if (!refreshToken) {
|
|
1457
1457
|
return next(
|
|
1458
1458
|
new CommercetoolsError(
|