@nocios/crudify-ui 3.0.64 → 3.0.66
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.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1107,7 +1107,7 @@ var SessionManager = class _SessionManager {
|
|
|
1107
1107
|
if (response.errors) {
|
|
1108
1108
|
if (Array.isArray(response.errors)) {
|
|
1109
1109
|
const hasAuthError = response.errors.some(
|
|
1110
|
-
(error) => error.message?.includes("Unauthorized") || error.message?.includes("Token") || error.extensions?.code === "UNAUTHENTICATED" || error.message?.includes("NOT_AUTHORIZED")
|
|
1110
|
+
(error) => error.errorType === "Unauthorized" || error.message?.includes("Unauthorized") || error.message?.includes("Not Authorized") || error.message?.includes("Token") || error.extensions?.code === "UNAUTHENTICATED" || error.message?.includes("NOT_AUTHORIZED")
|
|
1111
1111
|
);
|
|
1112
1112
|
if (hasAuthError) {
|
|
1113
1113
|
result.isAuthError = true;
|
package/dist/index.mjs
CHANGED
|
@@ -1034,7 +1034,7 @@ var SessionManager = class _SessionManager {
|
|
|
1034
1034
|
if (response.errors) {
|
|
1035
1035
|
if (Array.isArray(response.errors)) {
|
|
1036
1036
|
const hasAuthError = response.errors.some(
|
|
1037
|
-
(error) => error.message?.includes("Unauthorized") || error.message?.includes("Token") || error.extensions?.code === "UNAUTHENTICATED" || error.message?.includes("NOT_AUTHORIZED")
|
|
1037
|
+
(error) => error.errorType === "Unauthorized" || error.message?.includes("Unauthorized") || error.message?.includes("Not Authorized") || error.message?.includes("Token") || error.extensions?.code === "UNAUTHENTICATED" || error.message?.includes("NOT_AUTHORIZED")
|
|
1038
1038
|
);
|
|
1039
1039
|
if (hasAuthError) {
|
|
1040
1040
|
result.isAuthError = true;
|