@shopware-ag/acceptance-test-suite 11.4.1 → 11.4.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.mjs +2 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -502,7 +502,8 @@ const _AdminApiContext = class _AdminApiContext {
|
|
|
502
502
|
let response = await methodMap[method](url, options);
|
|
503
503
|
if (response.status() === 401) {
|
|
504
504
|
await this.refreshAccessToken();
|
|
505
|
-
|
|
505
|
+
const updatedOptions = { ...options, headers: { Authorization: `Bearer ${this.options["access_token"]}` } };
|
|
506
|
+
response = await methodMap[method](url, updatedOptions);
|
|
506
507
|
}
|
|
507
508
|
return response;
|
|
508
509
|
}
|