conexys-elements 1.1.2 → 1.1.3
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
CHANGED
|
@@ -301,7 +301,9 @@ const authStorage = {
|
|
|
301
301
|
if (USE_COOKIES_FOR_AUTH) {
|
|
302
302
|
return this.getCookie('cxauthxc');
|
|
303
303
|
}
|
|
304
|
-
|
|
304
|
+
const local = localStorage.getItem('cxauthxc');
|
|
305
|
+
if (local !== null) return local;
|
|
306
|
+
return this.getCookie('cxauthxc');
|
|
305
307
|
},
|
|
306
308
|
setSessionId(sessionId, configLogs) {
|
|
307
309
|
initializeAuthConfig(configLogs);
|
|
@@ -316,7 +318,9 @@ const authStorage = {
|
|
|
316
318
|
if (USE_COOKIES_FOR_AUTH) {
|
|
317
319
|
return this.getCookie('cx_session');
|
|
318
320
|
}
|
|
319
|
-
|
|
321
|
+
const local = localStorage.getItem('cx_session');
|
|
322
|
+
if (local !== null) return local;
|
|
323
|
+
return this.getCookie('cx_session');
|
|
320
324
|
},
|
|
321
325
|
removeAuthData(configLogs) {
|
|
322
326
|
initializeAuthConfig(configLogs);
|
|
@@ -10155,8 +10159,8 @@ const initializeSharedServices = () => {
|
|
|
10155
10159
|
},
|
|
10156
10160
|
getAuthData: () => {
|
|
10157
10161
|
return {
|
|
10158
|
-
sessionID:
|
|
10159
|
-
authToken:
|
|
10162
|
+
sessionID: authStorage.getSessionId(configLogs),
|
|
10163
|
+
authToken: authStorage.getAuthToken(configLogs)
|
|
10160
10164
|
};
|
|
10161
10165
|
}
|
|
10162
10166
|
};
|