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.modern.js
CHANGED
|
@@ -38440,8 +38440,9 @@ var useLogin = function useLogin() {
|
|
|
38440
38440
|
var authToken = getCookieValue("auth-token");
|
|
38441
38441
|
|
|
38442
38442
|
if (authToken) {
|
|
38443
|
+
var domain = window.location.hostname;
|
|
38443
38444
|
localStorage.setItem(ACCESS_TOKEN, authToken);
|
|
38444
|
-
document.cookie = "auth-token=;domain
|
|
38445
|
+
document.cookie = "auth-token=;domain=" + (domain.includes("localhost") ? domain : ".marioforme.com") + "; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/";
|
|
38445
38446
|
document.cookie = "redirect-uri=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/";
|
|
38446
38447
|
}
|
|
38447
38448
|
|