- Extract 4756 source files from cli.js.map (57MB) - Set up Bun build system with bun:bundle feature flag shim - Configure 90+ compile-time feature flags matching production defaults - Inject MACRO constants (VERSION, BUILD_TIME, etc.) - Create stubs for private packages (color-diff-napi, modifiers-napi, etc.) - Install all public dependencies via pnpm - Patch commander v14 to allow multi-char short flags (-d2e) - Build output: dist/cli.js (22MB), verified working
26 lines
961 B
JavaScript
26 lines
961 B
JavaScript
/*! @azure/msal-common v15.13.1 2025-10-29 */
|
|
'use strict';
|
|
/*
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License.
|
|
*/
|
|
/**
|
|
* Gets tenantId from available ID token claims to set as credential realm with the following precedence:
|
|
* 1. tid - if the token is acquired from an Azure AD tenant tid will be present
|
|
* 2. tfp - if the token is acquired from a modern B2C tenant tfp should be present
|
|
* 3. acr - if the token is acquired from a legacy B2C tenant acr should be present
|
|
* Downcased to match the realm case-insensitive comparison requirements
|
|
* @param idTokenClaims
|
|
* @returns
|
|
*/
|
|
function getTenantIdFromIdTokenClaims(idTokenClaims) {
|
|
if (idTokenClaims) {
|
|
const tenantId = idTokenClaims.tid || idTokenClaims.tfp || idTokenClaims.acr;
|
|
return tenantId || null;
|
|
}
|
|
return null;
|
|
}
|
|
|
|
export { getTenantIdFromIdTokenClaims };
|
|
//# sourceMappingURL=TokenClaims.mjs.map
|