@shopsbuilder/auth-sdk 1.2.2 → 1.2.4
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/SaleorAuthClient.js +4 -1
- package/dist/SaleorAuthClient.mjs +1 -1
- package/dist/{chunk-SLTPGWX3.mjs → chunk-24TF3SH3.mjs} +4 -1
- package/dist/index.js +4 -1
- package/dist/index.mjs +1 -1
- package/dist/react/SaleorAuthProvider.mjs +1 -1
- package/dist/react/context.mjs +1 -1
- package/dist/react/index.mjs +1 -1
- package/package.json +1 -1
package/dist/SaleorAuthClient.js
CHANGED
|
@@ -358,7 +358,10 @@ var SaleorAuthClient = class {
|
|
|
358
358
|
}
|
|
359
359
|
this.tokenRefreshPromise = fetch(
|
|
360
360
|
this.saleorApiUrl,
|
|
361
|
-
getRequestData(TOKEN_REFRESH, { refreshToken }, {
|
|
361
|
+
getRequestData(TOKEN_REFRESH, { refreshToken }, {
|
|
362
|
+
...this.defaultRequestInit,
|
|
363
|
+
headers: requestInit?.headers
|
|
364
|
+
})
|
|
362
365
|
);
|
|
363
366
|
return this.fetchWithAuth(input, requestInit, additionalParams);
|
|
364
367
|
};
|
|
@@ -121,7 +121,10 @@ var SaleorAuthClient = class {
|
|
|
121
121
|
}
|
|
122
122
|
this.tokenRefreshPromise = fetch(
|
|
123
123
|
this.saleorApiUrl,
|
|
124
|
-
getRequestData(TOKEN_REFRESH, { refreshToken }, {
|
|
124
|
+
getRequestData(TOKEN_REFRESH, { refreshToken }, {
|
|
125
|
+
...this.defaultRequestInit,
|
|
126
|
+
headers: requestInit?.headers
|
|
127
|
+
})
|
|
125
128
|
);
|
|
126
129
|
return this.fetchWithAuth(input, requestInit, additionalParams);
|
|
127
130
|
};
|
package/dist/index.js
CHANGED
|
@@ -361,7 +361,10 @@ var SaleorAuthClient = class {
|
|
|
361
361
|
}
|
|
362
362
|
this.tokenRefreshPromise = fetch(
|
|
363
363
|
this.saleorApiUrl,
|
|
364
|
-
getRequestData(TOKEN_REFRESH, { refreshToken }, {
|
|
364
|
+
getRequestData(TOKEN_REFRESH, { refreshToken }, {
|
|
365
|
+
...this.defaultRequestInit,
|
|
366
|
+
headers: requestInit?.headers
|
|
367
|
+
})
|
|
365
368
|
);
|
|
366
369
|
return this.fetchWithAuth(input, requestInit, additionalParams);
|
|
367
370
|
};
|
package/dist/index.mjs
CHANGED
package/dist/react/context.mjs
CHANGED
package/dist/react/index.mjs
CHANGED