@osovitny/anatoly 3.20.24 → 3.20.25
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.
|
@@ -1759,15 +1759,19 @@ class MSALUtils {
|
|
|
1759
1759
|
}
|
|
1760
1760
|
static getApi() {
|
|
1761
1761
|
let map = new Map();
|
|
1762
|
-
|
|
1763
|
-
|
|
1762
|
+
if (MSALApiConfig) {
|
|
1763
|
+
let api = MSALApiConfig;
|
|
1764
|
+
map.set(api.uri, api.scopes);
|
|
1765
|
+
}
|
|
1764
1766
|
return map;
|
|
1765
1767
|
}
|
|
1766
1768
|
static getApiScopes() {
|
|
1767
1769
|
let scopes = [];
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1770
|
+
if (MSALApiConfig) {
|
|
1771
|
+
let api = MSALApiConfig;
|
|
1772
|
+
for (const scope of api.scopes) {
|
|
1773
|
+
scopes.push(scope);
|
|
1774
|
+
}
|
|
1771
1775
|
}
|
|
1772
1776
|
return scopes;
|
|
1773
1777
|
}
|