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