sixseconds-modules 1.6.39 → 1.6.41
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.cjs.js +4 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +4 -1
- package/dist/index.es.js.map +1 -1
- package/dist/utils/common.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -2834,6 +2834,9 @@ const handleRedirection = (type, source) => {
|
|
|
2834
2834
|
}
|
|
2835
2835
|
};
|
|
2836
2836
|
const CookiesUtil = {
|
|
2837
|
+
get: (name) => {
|
|
2838
|
+
return JSON.parse(Cookies.get(name) || "{}");
|
|
2839
|
+
},
|
|
2837
2840
|
set: (name, val) => {
|
|
2838
2841
|
Cookies.set(name, JSON.stringify(val), {
|
|
2839
2842
|
path: "/",
|
|
@@ -10767,7 +10770,7 @@ const IMAGES = {
|
|
|
10767
10770
|
Us
|
|
10768
10771
|
};
|
|
10769
10772
|
const PreviousLoginBanner = ({ t: t2, router }) => {
|
|
10770
|
-
const previousLoginDetails =
|
|
10773
|
+
const previousLoginDetails = CookiesUtil.get("previousLoginDetails") || {};
|
|
10771
10774
|
CookiesUtil.set("previousLoginDetails", previousLoginDetails);
|
|
10772
10775
|
const handleAutoLogin = async () => {
|
|
10773
10776
|
try {
|