@azure/msal-browser
Version:
Microsoft Authentication Library for js
28 lines (26 loc) • 1.02 kB
JavaScript
/*! @azure/msal-browser v5.6.3 2026-04-01 */
;
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
/**
* Get network information for telemetry purposes. This is only supported in Chromium-based browsers.
* @returns Network connection information, or an empty object if not available.
*/
function collectInstanceStats(currentClientId, performanceEvent, logger, correlationId) {
const frameInstances =
// @ts-ignore
window.msal?.clientIds || [];
const msalInstanceCount = frameInstances.length;
const sameClientIdInstanceCount = frameInstances.filter((i) => i === currentClientId).length;
if (sameClientIdInstanceCount > 1) {
logger.warning("1e88vg", correlationId);
}
performanceEvent.add({
msalInstanceCount: msalInstanceCount,
sameClientIdInstanceCount: sameClientIdInstanceCount,
});
}
export { collectInstanceStats };
//# sourceMappingURL=MsalFrameStatsUtils.mjs.map