mario-core 2.9.223-release → 2.9.224-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.
@@ -1,3 +1,4 @@
1
+ import { LogLevel } from "@azure/msal-browser";
1
2
  /**
2
3
  * Configuration object to be passed to MSAL instance on creation.
3
4
  * For a full list of MSAL.js configuration parameters, visit:
@@ -15,7 +16,7 @@ export declare const msalConfig: {
15
16
  };
16
17
  system: {
17
18
  loggerOptions: {
18
- loggerCallback: (level: any, message: string, containsPii: any) => void;
19
+ loggerCallback: (level: LogLevel, message: string, containsPii: any) => void;
19
20
  };
20
21
  };
21
22
  };
package/dist/index.js CHANGED
@@ -32353,7 +32353,9 @@ var TheLayout = function TheLayout(_ref) {
32353
32353
  try {
32354
32354
  var _temp6 = _catch(function () {
32355
32355
  return Promise.resolve(getInfo()).then(function (info) {
32356
- if (!info) {
32356
+ var _info$data, _info$data$roles;
32357
+
32358
+ if (!info || !(info !== null && info !== void 0 && (_info$data = info.data) !== null && _info$data !== void 0 && (_info$data$roles = _info$data.roles) !== null && _info$data$roles !== void 0 && _info$data$roles.includes("Admin"))) {
32357
32359
  resetAuth();
32358
32360
  }
32359
32361