mario-core 2.9.311-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 +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +4 -4
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -38320,7 +38320,7 @@ var msalConfig = {
|
|
|
38320
38320
|
auth: {
|
|
38321
38321
|
clientId: isLocalhost ? "a27f8ac9-e039-4bbd-a9e1-3096e52a77bb" : "90c6897c-f17b-475e-a7a8-9a19651e0060",
|
|
38322
38322
|
authority: "https://login.microsoftonline.com/common",
|
|
38323
|
-
redirectUri: "https://
|
|
38323
|
+
redirectUri: "https://sso.marioforme.com/microsoft-login.html"
|
|
38324
38324
|
},
|
|
38325
38325
|
cache: {
|
|
38326
38326
|
cacheLocation: "sessionStorage",
|
|
@@ -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
|
|
|
@@ -38844,8 +38845,7 @@ var useLogin = function useLogin() {
|
|
|
38844
38845
|
|
|
38845
38846
|
var _temp39 = function () {
|
|
38846
38847
|
if (accounts.length === 0) {
|
|
38847
|
-
|
|
38848
|
-
var domainRedirect = isLocalhost ? "https://brightsoft.marioforme.com" : "https://microsoft.marioforme.com";
|
|
38848
|
+
var domainRedirect = isLocalhost ? "https://brightsoft.marioforme.com" : "https://sso.marioforme.com";
|
|
38849
38849
|
window.location.href = (window.location.hostname === "localhost" ? "https://localhost:5001" : domainRedirect) + ("/microsoft-login.html?redirect-uri=" + window.location.href + "&schoolId=" + school.schoolId);
|
|
38850
38850
|
} else {
|
|
38851
38851
|
var currentAccount = accounts[0];
|