mario-core 2.9.312-release → 2.9.313-release
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 +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +2 -1
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -38442,8 +38442,9 @@ var useLogin = function useLogin() {
|
|
|
38442
38442
|
var authToken = getCookieValue("auth-token");
|
|
38443
38443
|
|
|
38444
38444
|
if (authToken) {
|
|
38445
|
+
var domain = window.location.hostname;
|
|
38445
38446
|
localStorage.setItem(ACCESS_TOKEN, authToken);
|
|
38446
|
-
document.cookie = "auth-token=;domain
|
|
38447
|
+
document.cookie = "auth-token=;domain=" + (domain.includes("localhost") ? domain : ".marioforme.com") + "; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/";
|
|
38447
38448
|
document.cookie = "redirect-uri=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/";
|
|
38448
38449
|
}
|
|
38449
38450
|
|