customer-module-frontend 1.0.0-beta.16 → 1.0.0-beta.17
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/customer-module.js
CHANGED
|
@@ -25639,14 +25639,25 @@ ir.interceptors.request.use(
|
|
|
25639
25639
|
const n = la.getState().config;
|
|
25640
25640
|
n?.baseUrl && n?.accountId && (e.baseURL = `${n.baseUrl}/api/v1/accounts/${n.accountId}/customer-module`);
|
|
25641
25641
|
const t = $h();
|
|
25642
|
-
|
|
25643
|
-
|
|
25644
|
-
|
|
25645
|
-
|
|
25646
|
-
|
|
25647
|
-
|
|
25648
|
-
|
|
25649
|
-
|
|
25642
|
+
if (console.log("customer-module authCookie", t), t) {
|
|
25643
|
+
let a;
|
|
25644
|
+
if (typeof t == "string")
|
|
25645
|
+
try {
|
|
25646
|
+
a = JSON.parse(t);
|
|
25647
|
+
} catch {
|
|
25648
|
+
try {
|
|
25649
|
+
a = JSON.parse(decodeURIComponent(t));
|
|
25650
|
+
} catch {
|
|
25651
|
+
console.error("Failed to parse auth cookie"), a = {};
|
|
25652
|
+
}
|
|
25653
|
+
}
|
|
25654
|
+
else
|
|
25655
|
+
a = t;
|
|
25656
|
+
(a["access-token"] || a.access_token) && (e.headers["access-token"] = a["access-token"] || a.access_token), (a["token-type"] || a.token_type) && (e.headers["token-type"] = a["token-type"] || a.token_type), a.client && (e.headers.client = a.client), a.expiry && (e.headers.expiry = a.expiry), a.uid && (e.headers.uid = a.uid);
|
|
25657
|
+
const r = Gh();
|
|
25658
|
+
r && (e.headers.cookie = r), console.log("customer-module headers", e.headers);
|
|
25659
|
+
}
|
|
25660
|
+
return console.log("customer-module config", e), e;
|
|
25650
25661
|
},
|
|
25651
25662
|
(e) => Promise.reject(e)
|
|
25652
25663
|
);
|