npm / @azure/identity
@azure/identity
What changed in @azure/identity 4, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-27.
1 breaking1 security2 behavior and defaults4 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@azure/identity 48 changes
Breaking changes 1
Node.js v20 is supported, while Node.js v16 is no longer supported.
Security 1
Replaced shell-based execution with safe, structured process execution for developer credential commands.
Behavior and default changes 2
Brokered authentication on Windows OS, such as WAM, is now generally available.
Browser customization for success and error messages is now generally available.
Fixes and other changes 4
EnvironmentCredential and DefaultAzureCredential now honor this environment variable; the additionallyAllowedTenants option takes precedence when set.
Error messages and logs include only relevant details when the OIDC token request fails.
Caught errors are preserved as the cause when errors are wrapped.
Authentication works when the user's default browser is already running and permits only a single instance.