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 CHANGED
@@ -38322,7 +38322,7 @@ var msalConfig = {
38322
38322
  auth: {
38323
38323
  clientId: isLocalhost ? "a27f8ac9-e039-4bbd-a9e1-3096e52a77bb" : "90c6897c-f17b-475e-a7a8-9a19651e0060",
38324
38324
  authority: "https://login.microsoftonline.com/common",
38325
- redirectUri: "https://microsoft.marioforme.com/microsoft-login.html"
38325
+ redirectUri: "https://sso.marioforme.com/microsoft-login.html"
38326
38326
  },
38327
38327
  cache: {
38328
38328
  cacheLocation: "sessionStorage",
@@ -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=.marioforme.com; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/";
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
 
@@ -38846,8 +38847,7 @@ var useLogin = function useLogin() {
38846
38847
 
38847
38848
  var _temp39 = function () {
38848
38849
  if (accounts.length === 0) {
38849
- console.log(school.schoolId);
38850
- var domainRedirect = isLocalhost ? "https://brightsoft.marioforme.com" : "https://microsoft.marioforme.com";
38850
+ var domainRedirect = isLocalhost ? "https://brightsoft.marioforme.com" : "https://sso.marioforme.com";
38851
38851
  window.location.href = (window.location.hostname === "localhost" ? "https://localhost:5001" : domainRedirect) + ("/microsoft-login.html?redirect-uri=" + window.location.href + "&schoolId=" + school.schoolId);
38852
38852
  } else {
38853
38853
  var currentAccount = accounts[0];