acsi-core 0.1.64 → 0.1.65
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 +7 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +7 -1
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -990,10 +990,16 @@ var apiUpload$1 = axios.create({
|
|
|
990
990
|
window.location.href = "/login";
|
|
991
991
|
}
|
|
992
992
|
if (error.response.status == 403) {
|
|
993
|
+
var hostname = window.location.hostname;
|
|
994
|
+
var parts = hostname.split('.');
|
|
995
|
+
var domain = parts.slice(-2).join('.');
|
|
993
996
|
localStorage.removeItem(ACCESS_TOKEN);
|
|
994
997
|
localStorage.removeItem(ORGANIZATION_TENANT);
|
|
995
998
|
localStorage.removeItem(ORGANIZATION_TEAM);
|
|
996
|
-
Cookies.remove('auth'
|
|
999
|
+
Cookies.remove('auth', {
|
|
1000
|
+
path: '/',
|
|
1001
|
+
domain: "." + domain
|
|
1002
|
+
});
|
|
997
1003
|
localStorage.removeItem("USER_EMAIL");
|
|
998
1004
|
window.location.href = "/login";
|
|
999
1005
|
}
|