@its/core 1.1.29 → 1.1.31
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/core.es.js +6 -6
- package/dist/core.umd.js +1 -1
- package/dist/src/hooks/useAuth/useAuth.d.ts +2 -5
- package/dist/src/hooks/useAuth/useAuth.d.ts.map +1 -1
- package/dist/src/store/AuthContext/AuthProvider.d.ts +1 -1
- package/dist/src/store/AuthContext/AuthProvider.d.ts.map +1 -1
- package/dist/types/src/hooks/useAuth/useAuth.d.ts +2 -5
- package/dist/types/src/hooks/useAuth/useAuth.d.ts.map +1 -1
- package/dist/types/src/store/AuthContext/AuthProvider.d.ts +1 -1
- package/dist/types/src/store/AuthContext/AuthProvider.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/core.es.js
CHANGED
|
@@ -19207,17 +19207,17 @@ function Jye({
|
|
|
19207
19207
|
e({
|
|
19208
19208
|
variables: d,
|
|
19209
19209
|
onCompleted: (h) => {
|
|
19210
|
-
const { expires:
|
|
19211
|
-
if (
|
|
19210
|
+
const m = h.authMutation.login, { expires: p, token: g, errors: y, username: b } = m;
|
|
19211
|
+
if (y && y.length > 0) {
|
|
19212
19212
|
i.set(
|
|
19213
|
-
|
|
19214
|
-
code:
|
|
19215
|
-
description:
|
|
19213
|
+
(m.errors ?? []).map(({ code: E, description: w }) => ({
|
|
19214
|
+
code: E,
|
|
19215
|
+
description: w
|
|
19216
19216
|
}))
|
|
19217
19217
|
);
|
|
19218
19218
|
return;
|
|
19219
19219
|
}
|
|
19220
|
-
a.AUTH_SCHEMA !== "Cookies" &&
|
|
19220
|
+
a.AUTH_SCHEMA !== "Cookies" && g && localStorage.setItem("token", `Bearer ${g}`), p && localStorage.setItem("authExpiration", p), b && localStorage.setItem("username", b);
|
|
19221
19221
|
}
|
|
19222
19222
|
});
|
|
19223
19223
|
},
|