acsi-core 1.1.0 → 1.2.0

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
@@ -2517,7 +2517,8 @@ var BlockLogin = function BlockLogin(_ref) {
2517
2517
  });
2518
2518
  var fnLoginMicrosoft = function fnLoginMicrosoft() {
2519
2519
  try {
2520
- var msalInstance = new msalBrowser.PublicClientApplication(msalConfig(MICROSOFT_CLIENT_ID, MICROSOFT_URL_DIRECT));
2520
+ var redirectUri = window.location.origin + "/auth-redirect.html";
2521
+ var msalInstance = new msalBrowser.PublicClientApplication(msalConfig(MICROSOFT_CLIENT_ID, redirectUri));
2521
2522
  if (!msalInstance) {
2522
2523
  console.error("MSAL instance not initialized");
2523
2524
  return Promise.resolve();
@@ -2525,7 +2526,8 @@ var BlockLogin = function BlockLogin(_ref) {
2525
2526
  return Promise.resolve(_catch(function () {
2526
2527
  return Promise.resolve(msalInstance.initialize()).then(function () {
2527
2528
  var loginRequest = {
2528
- scopes: ["openid", "profile", "email"]
2529
+ scopes: ["openid", "profile", "email"],
2530
+ redirectUri: redirectUri
2529
2531
  };
2530
2532
  var silentRequest = _extends$1({}, loginRequest, {
2531
2533
  prompt: "select_account"