@shopsbuilder/auth-sdk 1.2.1 → 1.2.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/SaleorAuthClient.js +4 -3
- package/dist/SaleorAuthClient.mjs +1 -1
- package/dist/{chunk-OGC5TPQ2.mjs → chunk-SLTPGWX3.mjs} +4 -3
- package/dist/index.js +4 -3
- 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
|
@@ -341,10 +341,11 @@ var SaleorAuthClient = class {
|
|
|
341
341
|
this.onAuthRefresh?.(false);
|
|
342
342
|
if (refreshErrors?.length || graphqlErrors?.length || !token) {
|
|
343
343
|
console.warn("[auth-sdk] Token refresh failed:", JSON.stringify({
|
|
344
|
-
graphqlErrors: graphqlErrors
|
|
345
|
-
refreshErrors: refreshErrors
|
|
344
|
+
graphqlErrors: graphqlErrors ?? [],
|
|
345
|
+
refreshErrors: refreshErrors ?? [],
|
|
346
346
|
hasToken: Boolean(token),
|
|
347
|
-
httpStatus: response.status
|
|
347
|
+
httpStatus: response.status,
|
|
348
|
+
rawData: res.data ?? null
|
|
348
349
|
}));
|
|
349
350
|
this.tokenRefreshPromise = null;
|
|
350
351
|
this.refreshTokenStorage?.clearAuthStorage();
|
|
@@ -104,10 +104,11 @@ var SaleorAuthClient = class {
|
|
|
104
104
|
this.onAuthRefresh?.(false);
|
|
105
105
|
if (refreshErrors?.length || graphqlErrors?.length || !token) {
|
|
106
106
|
console.warn("[auth-sdk] Token refresh failed:", JSON.stringify({
|
|
107
|
-
graphqlErrors: graphqlErrors
|
|
108
|
-
refreshErrors: refreshErrors
|
|
107
|
+
graphqlErrors: graphqlErrors ?? [],
|
|
108
|
+
refreshErrors: refreshErrors ?? [],
|
|
109
109
|
hasToken: Boolean(token),
|
|
110
|
-
httpStatus: response.status
|
|
110
|
+
httpStatus: response.status,
|
|
111
|
+
rawData: res.data ?? null
|
|
111
112
|
}));
|
|
112
113
|
this.tokenRefreshPromise = null;
|
|
113
114
|
this.refreshTokenStorage?.clearAuthStorage();
|
package/dist/index.js
CHANGED
|
@@ -344,10 +344,11 @@ var SaleorAuthClient = class {
|
|
|
344
344
|
this.onAuthRefresh?.(false);
|
|
345
345
|
if (refreshErrors?.length || graphqlErrors?.length || !token) {
|
|
346
346
|
console.warn("[auth-sdk] Token refresh failed:", JSON.stringify({
|
|
347
|
-
graphqlErrors: graphqlErrors
|
|
348
|
-
refreshErrors: refreshErrors
|
|
347
|
+
graphqlErrors: graphqlErrors ?? [],
|
|
348
|
+
refreshErrors: refreshErrors ?? [],
|
|
349
349
|
hasToken: Boolean(token),
|
|
350
|
-
httpStatus: response.status
|
|
350
|
+
httpStatus: response.status,
|
|
351
|
+
rawData: res.data ?? null
|
|
351
352
|
}));
|
|
352
353
|
this.tokenRefreshPromise = null;
|
|
353
354
|
this.refreshTokenStorage?.clearAuthStorage();
|
package/dist/index.mjs
CHANGED
package/dist/react/context.mjs
CHANGED
package/dist/react/index.mjs
CHANGED