mario-core 2.9.310-release → 2.9.312-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 +3 -4
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +3 -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",
|
|
@@ -38441,7 +38441,7 @@ var useLogin = function useLogin() {
|
|
|
38441
38441
|
|
|
38442
38442
|
if (authToken) {
|
|
38443
38443
|
localStorage.setItem(ACCESS_TOKEN, authToken);
|
|
38444
|
-
document.cookie = "auth-token=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/";
|
|
38444
|
+
document.cookie = "auth-token=;domain=.marioforme.com; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/";
|
|
38445
38445
|
document.cookie = "redirect-uri=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/";
|
|
38446
38446
|
}
|
|
38447
38447
|
|
|
@@ -38844,8 +38844,7 @@ var useLogin = function useLogin() {
|
|
|
38844
38844
|
|
|
38845
38845
|
var _temp39 = function () {
|
|
38846
38846
|
if (accounts.length === 0) {
|
|
38847
|
-
|
|
38848
|
-
var domainRedirect = isLocalhost ? "https://brightsoft.marioforme.com" : "https://microsoft.marioforme.com";
|
|
38847
|
+
var domainRedirect = isLocalhost ? "https://brightsoft.marioforme.com" : "https://sso.marioforme.com";
|
|
38849
38848
|
window.location.href = (window.location.hostname === "localhost" ? "https://localhost:5001" : domainRedirect) + ("/microsoft-login.html?redirect-uri=" + window.location.href + "&schoolId=" + school.schoolId);
|
|
38850
38849
|
} else {
|
|
38851
38850
|
var currentAccount = accounts[0];
|