@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/package.json
CHANGED
package/src/oauth/server.ts
CHANGED
|
@@ -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 =
|
|
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>(
|