@azure/msal-node 5.1.4 → 5.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.
Files changed (368) hide show
  1. package/dist/cache/CacheHelpers.mjs +1 -1
  2. package/dist/cache/NodeStorage.mjs +5 -2
  3. package/dist/cache/NodeStorage.mjs.map +1 -1
  4. package/dist/cache/TokenCache.mjs +1 -1
  5. package/dist/cache/distributed/DistributedCachePlugin.mjs +1 -1
  6. package/dist/cache/serializer/Deserializer.mjs +1 -1
  7. package/dist/cache/serializer/Serializer.mjs +1 -1
  8. package/dist/client/BaseClient.mjs +1 -1
  9. package/dist/client/ClientApplication.mjs +2 -2
  10. package/dist/client/ClientAssertion.mjs +1 -1
  11. package/dist/client/ClientCredentialClient.mjs +1 -1
  12. package/dist/client/ConfidentialClientApplication.mjs +1 -1
  13. package/dist/client/DeviceCodeClient.mjs +1 -1
  14. package/dist/client/ManagedIdentityApplication.mjs +1 -1
  15. package/dist/client/ManagedIdentityClient.mjs +1 -1
  16. package/dist/client/ManagedIdentitySources/AppService.mjs +1 -1
  17. package/dist/client/ManagedIdentitySources/AzureArc.mjs +1 -1
  18. package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs +9 -1
  19. package/dist/client/ManagedIdentitySources/BaseManagedIdentitySource.mjs.map +1 -1
  20. package/dist/client/ManagedIdentitySources/CloudShell.mjs +1 -1
  21. package/dist/client/ManagedIdentitySources/Imds.mjs +8 -2
  22. package/dist/client/ManagedIdentitySources/Imds.mjs.map +1 -1
  23. package/dist/client/ManagedIdentitySources/MachineLearning.mjs +1 -1
  24. package/dist/client/ManagedIdentitySources/ServiceFabric.mjs +1 -1
  25. package/dist/client/OnBehalfOfClient.mjs +1 -1
  26. package/dist/client/PublicClientApplication.mjs +1 -1
  27. package/dist/client/UsernamePasswordClient.mjs +1 -1
  28. package/dist/config/Configuration.mjs +1 -1
  29. package/dist/config/ManagedIdentityId.mjs +1 -1
  30. package/dist/config/ManagedIdentityRequestParameters.mjs +1 -1
  31. package/dist/crypto/CryptoProvider.mjs +1 -1
  32. package/dist/crypto/GuidGenerator.mjs +5 -6
  33. package/dist/crypto/GuidGenerator.mjs.map +1 -1
  34. package/dist/crypto/HashUtils.mjs +1 -1
  35. package/dist/crypto/PkceGenerator.mjs +1 -1
  36. package/dist/error/ClientAuthErrorCodes.mjs +1 -1
  37. package/dist/error/ManagedIdentityError.mjs +1 -1
  38. package/dist/error/ManagedIdentityErrorCodes.mjs +1 -1
  39. package/dist/error/NodeAuthError.mjs +1 -1
  40. package/dist/index.mjs +1 -1
  41. package/dist/internals.mjs +1 -1
  42. package/dist/network/HttpClient.mjs +1 -1
  43. package/dist/network/HttpClientWithRetries.mjs +1 -1
  44. package/dist/network/LoopbackClient.mjs +1 -1
  45. package/dist/packageMetadata.mjs +2 -2
  46. package/dist/protocol/Authorize.mjs +1 -1
  47. package/dist/retry/DefaultManagedIdentityRetryPolicy.mjs +1 -1
  48. package/dist/retry/ExponentialRetryStrategy.mjs +1 -1
  49. package/dist/retry/ImdsRetryPolicy.mjs +1 -1
  50. package/dist/retry/LinearRetryStrategy.mjs +1 -1
  51. package/dist/utils/Constants.mjs +6 -1
  52. package/dist/utils/Constants.mjs.map +1 -1
  53. package/dist/utils/EncodingUtils.mjs +1 -1
  54. package/dist/utils/TimeUtils.mjs +1 -1
  55. package/lib/msal-node.cjs +92 -72
  56. package/lib/msal-node.cjs.map +1 -1
  57. package/package.json +10 -10
  58. package/src/cache/NodeStorage.ts +4 -1
  59. package/src/client/ClientApplication.ts +1 -1
  60. package/src/client/IConfidentialClientApplication.ts +1 -1
  61. package/src/client/IPublicClientApplication.ts +1 -1
  62. package/src/client/ManagedIdentitySources/BaseManagedIdentitySource.ts +9 -0
  63. package/src/client/ManagedIdentitySources/Imds.ts +7 -0
  64. package/src/crypto/GuidGenerator.ts +4 -5
  65. package/src/packageMetadata.ts +1 -1
  66. package/src/utils/Constants.ts +4 -0
  67. package/{dist → types}/cache/NodeStorage.d.ts +1 -1
  68. package/{dist → types}/cache/NodeStorage.d.ts.map +1 -1
  69. package/{lib/types → types}/client/ClientApplication.d.ts +1 -1
  70. package/{lib/types → types}/client/IConfidentialClientApplication.d.ts +1 -1
  71. package/{dist → types}/client/IConfidentialClientApplication.d.ts.map +1 -1
  72. package/{dist → types}/client/IPublicClientApplication.d.ts +1 -1
  73. package/{dist → types}/client/IPublicClientApplication.d.ts.map +1 -1
  74. package/{dist → types}/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts +6 -0
  75. package/{dist → types}/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts.map +1 -1
  76. package/{dist → types}/client/ManagedIdentitySources/Imds.d.ts.map +1 -1
  77. package/{dist → types}/crypto/GuidGenerator.d.ts +2 -3
  78. package/{dist → types}/crypto/GuidGenerator.d.ts.map +1 -1
  79. package/types/index.d.cts +1 -0
  80. package/types/packageMetadata.d.ts +3 -0
  81. package/{lib/types → types}/utils/Constants.d.ts +3 -0
  82. package/{lib/types → types}/utils/Constants.d.ts.map +1 -1
  83. package/dist/client/ClientApplication.d.ts +0 -146
  84. package/dist/client/IConfidentialClientApplication.d.ts +0 -43
  85. package/dist/packageMetadata.d.ts +0 -3
  86. package/dist/utils/Constants.d.ts +0 -156
  87. package/dist/utils/Constants.d.ts.map +0 -1
  88. package/lib/types/cache/CacheHelpers.d.ts +0 -4
  89. package/lib/types/cache/CacheHelpers.d.ts.map +0 -1
  90. package/lib/types/cache/ITokenCache.d.ts +0 -16
  91. package/lib/types/cache/ITokenCache.d.ts.map +0 -1
  92. package/lib/types/cache/NodeStorage.d.ts +0 -191
  93. package/lib/types/cache/NodeStorage.d.ts.map +0 -1
  94. package/lib/types/cache/TokenCache.d.ts +0 -99
  95. package/lib/types/cache/TokenCache.d.ts.map +0 -1
  96. package/lib/types/cache/distributed/DistributedCachePlugin.d.ts +0 -23
  97. package/lib/types/cache/distributed/DistributedCachePlugin.d.ts.map +0 -1
  98. package/lib/types/cache/distributed/ICacheClient.d.ts +0 -22
  99. package/lib/types/cache/distributed/ICacheClient.d.ts.map +0 -1
  100. package/lib/types/cache/distributed/IPartitionManager.d.ts +0 -33
  101. package/lib/types/cache/distributed/IPartitionManager.d.ts.map +0 -1
  102. package/lib/types/cache/serializer/Deserializer.d.ts +0 -44
  103. package/lib/types/cache/serializer/Deserializer.d.ts.map +0 -1
  104. package/lib/types/cache/serializer/Serializer.d.ts +0 -44
  105. package/lib/types/cache/serializer/Serializer.d.ts.map +0 -1
  106. package/lib/types/cache/serializer/SerializerTypes.d.ts +0 -102
  107. package/lib/types/cache/serializer/SerializerTypes.d.ts.map +0 -1
  108. package/lib/types/client/BaseClient.d.ts +0 -42
  109. package/lib/types/client/BaseClient.d.ts.map +0 -1
  110. package/lib/types/client/ClientApplication.d.ts.map +0 -1
  111. package/lib/types/client/ClientAssertion.d.ts +0 -56
  112. package/lib/types/client/ClientAssertion.d.ts.map +0 -1
  113. package/lib/types/client/ClientCredentialClient.d.ts +0 -37
  114. package/lib/types/client/ClientCredentialClient.d.ts.map +0 -1
  115. package/lib/types/client/ConfidentialClientApplication.d.ts +0 -58
  116. package/lib/types/client/ConfidentialClientApplication.d.ts.map +0 -1
  117. package/lib/types/client/DeviceCodeClient.d.ts +0 -60
  118. package/lib/types/client/DeviceCodeClient.d.ts.map +0 -1
  119. package/lib/types/client/IConfidentialClientApplication.d.ts.map +0 -1
  120. package/lib/types/client/IPublicClientApplication.d.ts +0 -46
  121. package/lib/types/client/IPublicClientApplication.d.ts.map +0 -1
  122. package/lib/types/client/ManagedIdentityApplication.d.ts +0 -42
  123. package/lib/types/client/ManagedIdentityApplication.d.ts.map +0 -1
  124. package/lib/types/client/ManagedIdentityClient.d.ts +0 -29
  125. package/lib/types/client/ManagedIdentityClient.d.ts.map +0 -1
  126. package/lib/types/client/ManagedIdentitySources/AppService.d.ts +0 -72
  127. package/lib/types/client/ManagedIdentitySources/AppService.d.ts.map +0 -1
  128. package/lib/types/client/ManagedIdentitySources/AzureArc.d.ts +0 -109
  129. package/lib/types/client/ManagedIdentitySources/AzureArc.d.ts.map +0 -1
  130. package/lib/types/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts +0 -125
  131. package/lib/types/client/ManagedIdentitySources/BaseManagedIdentitySource.d.ts.map +0 -1
  132. package/lib/types/client/ManagedIdentitySources/CloudShell.d.ts +0 -71
  133. package/lib/types/client/ManagedIdentitySources/CloudShell.d.ts.map +0 -1
  134. package/lib/types/client/ManagedIdentitySources/Imds.d.ts +0 -67
  135. package/lib/types/client/ManagedIdentitySources/Imds.d.ts.map +0 -1
  136. package/lib/types/client/ManagedIdentitySources/MachineLearning.d.ts +0 -81
  137. package/lib/types/client/ManagedIdentitySources/MachineLearning.d.ts.map +0 -1
  138. package/lib/types/client/ManagedIdentitySources/ServiceFabric.d.ts +0 -82
  139. package/lib/types/client/ManagedIdentitySources/ServiceFabric.d.ts.map +0 -1
  140. package/lib/types/client/OnBehalfOfClient.d.ts +0 -50
  141. package/lib/types/client/OnBehalfOfClient.d.ts.map +0 -1
  142. package/lib/types/client/PublicClientApplication.d.ts +0 -85
  143. package/lib/types/client/PublicClientApplication.d.ts.map +0 -1
  144. package/lib/types/client/UsernamePasswordClient.d.ts +0 -30
  145. package/lib/types/client/UsernamePasswordClient.d.ts.map +0 -1
  146. package/lib/types/config/Configuration.d.ts +0 -131
  147. package/lib/types/config/Configuration.d.ts.map +0 -1
  148. package/lib/types/config/ManagedIdentityId.d.ts +0 -12
  149. package/lib/types/config/ManagedIdentityId.d.ts.map +0 -1
  150. package/lib/types/config/ManagedIdentityRequestParameters.d.ts +0 -13
  151. package/lib/types/config/ManagedIdentityRequestParameters.d.ts.map +0 -1
  152. package/lib/types/crypto/CryptoProvider.d.ts +0 -63
  153. package/lib/types/crypto/CryptoProvider.d.ts.map +0 -1
  154. package/lib/types/crypto/GuidGenerator.d.ts +0 -15
  155. package/lib/types/crypto/GuidGenerator.d.ts.map +0 -1
  156. package/lib/types/crypto/HashUtils.d.ts +0 -10
  157. package/lib/types/crypto/HashUtils.d.ts.map +0 -1
  158. package/lib/types/crypto/PkceGenerator.d.ts +0 -23
  159. package/lib/types/crypto/PkceGenerator.d.ts.map +0 -1
  160. package/lib/types/error/ClientAuthErrorCodes.d.ts +0 -8
  161. package/lib/types/error/ClientAuthErrorCodes.d.ts.map +0 -1
  162. package/lib/types/error/ManagedIdentityError.d.ts +0 -31
  163. package/lib/types/error/ManagedIdentityError.d.ts.map +0 -1
  164. package/lib/types/error/ManagedIdentityErrorCodes.d.ts +0 -23
  165. package/lib/types/error/ManagedIdentityErrorCodes.d.ts.map +0 -1
  166. package/lib/types/error/NodeAuthError.d.ts +0 -82
  167. package/lib/types/error/NodeAuthError.d.ts.map +0 -1
  168. package/lib/types/index.d.ts +0 -54
  169. package/lib/types/index.d.ts.map +0 -1
  170. package/lib/types/internals.d.ts +0 -7
  171. package/lib/types/internals.d.ts.map +0 -1
  172. package/lib/types/network/HttpClient.d.ts +0 -66
  173. package/lib/types/network/HttpClient.d.ts.map +0 -1
  174. package/lib/types/network/HttpClientWithRetries.d.ts +0 -13
  175. package/lib/types/network/HttpClientWithRetries.d.ts.map +0 -1
  176. package/lib/types/network/ILoopbackClient.d.ts +0 -11
  177. package/lib/types/network/ILoopbackClient.d.ts.map +0 -1
  178. package/lib/types/network/LoopbackClient.d.ts +0 -22
  179. package/lib/types/network/LoopbackClient.d.ts.map +0 -1
  180. package/lib/types/packageMetadata.d.ts +0 -3
  181. package/lib/types/packageMetadata.d.ts.map +0 -1
  182. package/lib/types/protocol/Authorize.d.ts +0 -12
  183. package/lib/types/protocol/Authorize.d.ts.map +0 -1
  184. package/lib/types/request/AuthorizationCodeRequest.d.ts +0 -24
  185. package/lib/types/request/AuthorizationCodeRequest.d.ts.map +0 -1
  186. package/lib/types/request/AuthorizationUrlRequest.d.ts +0 -16
  187. package/lib/types/request/AuthorizationUrlRequest.d.ts.map +0 -1
  188. package/lib/types/request/ClientCredentialRequest.d.ts +0 -13
  189. package/lib/types/request/ClientCredentialRequest.d.ts.map +0 -1
  190. package/lib/types/request/CommonClientCredentialRequest.d.ts +0 -19
  191. package/lib/types/request/CommonClientCredentialRequest.d.ts.map +0 -1
  192. package/lib/types/request/CommonDeviceCodeRequest.d.ts +0 -23
  193. package/lib/types/request/CommonDeviceCodeRequest.d.ts.map +0 -1
  194. package/lib/types/request/CommonOnBehalfOfRequest.d.ts +0 -15
  195. package/lib/types/request/CommonOnBehalfOfRequest.d.ts.map +0 -1
  196. package/lib/types/request/CommonUsernamePasswordRequest.d.ts +0 -16
  197. package/lib/types/request/CommonUsernamePasswordRequest.d.ts.map +0 -1
  198. package/lib/types/request/DeviceCodeRequest.d.ts +0 -17
  199. package/lib/types/request/DeviceCodeRequest.d.ts.map +0 -1
  200. package/lib/types/request/InteractiveRequest.d.ts +0 -35
  201. package/lib/types/request/InteractiveRequest.d.ts.map +0 -1
  202. package/lib/types/request/ManagedIdentityRequest.d.ts +0 -16
  203. package/lib/types/request/ManagedIdentityRequest.d.ts.map +0 -1
  204. package/lib/types/request/ManagedIdentityRequestParams.d.ts +0 -19
  205. package/lib/types/request/ManagedIdentityRequestParams.d.ts.map +0 -1
  206. package/lib/types/request/OnBehalfOfRequest.d.ts +0 -16
  207. package/lib/types/request/OnBehalfOfRequest.d.ts.map +0 -1
  208. package/lib/types/request/RefreshTokenRequest.d.ts +0 -20
  209. package/lib/types/request/RefreshTokenRequest.d.ts.map +0 -1
  210. package/lib/types/request/SignOutRequest.d.ts +0 -7
  211. package/lib/types/request/SignOutRequest.d.ts.map +0 -1
  212. package/lib/types/request/SilentFlowRequest.d.ts +0 -16
  213. package/lib/types/request/SilentFlowRequest.d.ts.map +0 -1
  214. package/lib/types/request/UsernamePasswordRequest.d.ts +0 -21
  215. package/lib/types/request/UsernamePasswordRequest.d.ts.map +0 -1
  216. package/lib/types/response/ManagedIdentityTokenResponse.d.ts +0 -35
  217. package/lib/types/response/ManagedIdentityTokenResponse.d.ts.map +0 -1
  218. package/lib/types/retry/DefaultManagedIdentityRetryPolicy.d.ts +0 -11
  219. package/lib/types/retry/DefaultManagedIdentityRetryPolicy.d.ts.map +0 -1
  220. package/lib/types/retry/ExponentialRetryStrategy.d.ts +0 -23
  221. package/lib/types/retry/ExponentialRetryStrategy.d.ts.map +0 -1
  222. package/lib/types/retry/IHttpRetryPolicy.d.ts +0 -16
  223. package/lib/types/retry/IHttpRetryPolicy.d.ts.map +0 -1
  224. package/lib/types/retry/ImdsRetryPolicy.d.ts +0 -22
  225. package/lib/types/retry/ImdsRetryPolicy.d.ts.map +0 -1
  226. package/lib/types/retry/LinearRetryStrategy.d.ts +0 -14
  227. package/lib/types/retry/LinearRetryStrategy.d.ts.map +0 -1
  228. package/lib/types/utils/EncodingUtils.d.ts +0 -27
  229. package/lib/types/utils/EncodingUtils.d.ts.map +0 -1
  230. package/lib/types/utils/NetworkUtils.d.ts +0 -17
  231. package/lib/types/utils/NetworkUtils.d.ts.map +0 -1
  232. package/lib/types/utils/TimeUtils.d.ts +0 -9
  233. package/lib/types/utils/TimeUtils.d.ts.map +0 -1
  234. /package/{dist → types}/cache/CacheHelpers.d.ts +0 -0
  235. /package/{dist → types}/cache/CacheHelpers.d.ts.map +0 -0
  236. /package/{dist → types}/cache/ITokenCache.d.ts +0 -0
  237. /package/{dist → types}/cache/ITokenCache.d.ts.map +0 -0
  238. /package/{dist → types}/cache/TokenCache.d.ts +0 -0
  239. /package/{dist → types}/cache/TokenCache.d.ts.map +0 -0
  240. /package/{dist → types}/cache/distributed/DistributedCachePlugin.d.ts +0 -0
  241. /package/{dist → types}/cache/distributed/DistributedCachePlugin.d.ts.map +0 -0
  242. /package/{dist → types}/cache/distributed/ICacheClient.d.ts +0 -0
  243. /package/{dist → types}/cache/distributed/ICacheClient.d.ts.map +0 -0
  244. /package/{dist → types}/cache/distributed/IPartitionManager.d.ts +0 -0
  245. /package/{dist → types}/cache/distributed/IPartitionManager.d.ts.map +0 -0
  246. /package/{dist → types}/cache/serializer/Deserializer.d.ts +0 -0
  247. /package/{dist → types}/cache/serializer/Deserializer.d.ts.map +0 -0
  248. /package/{dist → types}/cache/serializer/Serializer.d.ts +0 -0
  249. /package/{dist → types}/cache/serializer/Serializer.d.ts.map +0 -0
  250. /package/{dist → types}/cache/serializer/SerializerTypes.d.ts +0 -0
  251. /package/{dist → types}/cache/serializer/SerializerTypes.d.ts.map +0 -0
  252. /package/{dist → types}/client/BaseClient.d.ts +0 -0
  253. /package/{dist → types}/client/BaseClient.d.ts.map +0 -0
  254. /package/{dist → types}/client/ClientApplication.d.ts.map +0 -0
  255. /package/{dist → types}/client/ClientAssertion.d.ts +0 -0
  256. /package/{dist → types}/client/ClientAssertion.d.ts.map +0 -0
  257. /package/{dist → types}/client/ClientCredentialClient.d.ts +0 -0
  258. /package/{dist → types}/client/ClientCredentialClient.d.ts.map +0 -0
  259. /package/{dist → types}/client/ConfidentialClientApplication.d.ts +0 -0
  260. /package/{dist → types}/client/ConfidentialClientApplication.d.ts.map +0 -0
  261. /package/{dist → types}/client/DeviceCodeClient.d.ts +0 -0
  262. /package/{dist → types}/client/DeviceCodeClient.d.ts.map +0 -0
  263. /package/{dist → types}/client/ManagedIdentityApplication.d.ts +0 -0
  264. /package/{dist → types}/client/ManagedIdentityApplication.d.ts.map +0 -0
  265. /package/{dist → types}/client/ManagedIdentityClient.d.ts +0 -0
  266. /package/{dist → types}/client/ManagedIdentityClient.d.ts.map +0 -0
  267. /package/{dist → types}/client/ManagedIdentitySources/AppService.d.ts +0 -0
  268. /package/{dist → types}/client/ManagedIdentitySources/AppService.d.ts.map +0 -0
  269. /package/{dist → types}/client/ManagedIdentitySources/AzureArc.d.ts +0 -0
  270. /package/{dist → types}/client/ManagedIdentitySources/AzureArc.d.ts.map +0 -0
  271. /package/{dist → types}/client/ManagedIdentitySources/CloudShell.d.ts +0 -0
  272. /package/{dist → types}/client/ManagedIdentitySources/CloudShell.d.ts.map +0 -0
  273. /package/{dist → types}/client/ManagedIdentitySources/Imds.d.ts +0 -0
  274. /package/{dist → types}/client/ManagedIdentitySources/MachineLearning.d.ts +0 -0
  275. /package/{dist → types}/client/ManagedIdentitySources/MachineLearning.d.ts.map +0 -0
  276. /package/{dist → types}/client/ManagedIdentitySources/ServiceFabric.d.ts +0 -0
  277. /package/{dist → types}/client/ManagedIdentitySources/ServiceFabric.d.ts.map +0 -0
  278. /package/{dist → types}/client/OnBehalfOfClient.d.ts +0 -0
  279. /package/{dist → types}/client/OnBehalfOfClient.d.ts.map +0 -0
  280. /package/{dist → types}/client/PublicClientApplication.d.ts +0 -0
  281. /package/{dist → types}/client/PublicClientApplication.d.ts.map +0 -0
  282. /package/{dist → types}/client/UsernamePasswordClient.d.ts +0 -0
  283. /package/{dist → types}/client/UsernamePasswordClient.d.ts.map +0 -0
  284. /package/{dist → types}/config/Configuration.d.ts +0 -0
  285. /package/{dist → types}/config/Configuration.d.ts.map +0 -0
  286. /package/{dist → types}/config/ManagedIdentityId.d.ts +0 -0
  287. /package/{dist → types}/config/ManagedIdentityId.d.ts.map +0 -0
  288. /package/{dist → types}/config/ManagedIdentityRequestParameters.d.ts +0 -0
  289. /package/{dist → types}/config/ManagedIdentityRequestParameters.d.ts.map +0 -0
  290. /package/{dist → types}/crypto/CryptoProvider.d.ts +0 -0
  291. /package/{dist → types}/crypto/CryptoProvider.d.ts.map +0 -0
  292. /package/{dist → types}/crypto/HashUtils.d.ts +0 -0
  293. /package/{dist → types}/crypto/HashUtils.d.ts.map +0 -0
  294. /package/{dist → types}/crypto/PkceGenerator.d.ts +0 -0
  295. /package/{dist → types}/crypto/PkceGenerator.d.ts.map +0 -0
  296. /package/{dist → types}/error/ClientAuthErrorCodes.d.ts +0 -0
  297. /package/{dist → types}/error/ClientAuthErrorCodes.d.ts.map +0 -0
  298. /package/{dist → types}/error/ManagedIdentityError.d.ts +0 -0
  299. /package/{dist → types}/error/ManagedIdentityError.d.ts.map +0 -0
  300. /package/{dist → types}/error/ManagedIdentityErrorCodes.d.ts +0 -0
  301. /package/{dist → types}/error/ManagedIdentityErrorCodes.d.ts.map +0 -0
  302. /package/{dist → types}/error/NodeAuthError.d.ts +0 -0
  303. /package/{dist → types}/error/NodeAuthError.d.ts.map +0 -0
  304. /package/{dist → types}/index.d.ts +0 -0
  305. /package/{dist → types}/index.d.ts.map +0 -0
  306. /package/{dist → types}/internals.d.ts +0 -0
  307. /package/{dist → types}/internals.d.ts.map +0 -0
  308. /package/{dist → types}/network/HttpClient.d.ts +0 -0
  309. /package/{dist → types}/network/HttpClient.d.ts.map +0 -0
  310. /package/{dist → types}/network/HttpClientWithRetries.d.ts +0 -0
  311. /package/{dist → types}/network/HttpClientWithRetries.d.ts.map +0 -0
  312. /package/{dist → types}/network/ILoopbackClient.d.ts +0 -0
  313. /package/{dist → types}/network/ILoopbackClient.d.ts.map +0 -0
  314. /package/{dist → types}/network/LoopbackClient.d.ts +0 -0
  315. /package/{dist → types}/network/LoopbackClient.d.ts.map +0 -0
  316. /package/{dist → types}/packageMetadata.d.ts.map +0 -0
  317. /package/{dist → types}/protocol/Authorize.d.ts +0 -0
  318. /package/{dist → types}/protocol/Authorize.d.ts.map +0 -0
  319. /package/{dist → types}/request/AuthorizationCodeRequest.d.ts +0 -0
  320. /package/{dist → types}/request/AuthorizationCodeRequest.d.ts.map +0 -0
  321. /package/{dist → types}/request/AuthorizationUrlRequest.d.ts +0 -0
  322. /package/{dist → types}/request/AuthorizationUrlRequest.d.ts.map +0 -0
  323. /package/{dist → types}/request/ClientCredentialRequest.d.ts +0 -0
  324. /package/{dist → types}/request/ClientCredentialRequest.d.ts.map +0 -0
  325. /package/{dist → types}/request/CommonClientCredentialRequest.d.ts +0 -0
  326. /package/{dist → types}/request/CommonClientCredentialRequest.d.ts.map +0 -0
  327. /package/{dist → types}/request/CommonDeviceCodeRequest.d.ts +0 -0
  328. /package/{dist → types}/request/CommonDeviceCodeRequest.d.ts.map +0 -0
  329. /package/{dist → types}/request/CommonOnBehalfOfRequest.d.ts +0 -0
  330. /package/{dist → types}/request/CommonOnBehalfOfRequest.d.ts.map +0 -0
  331. /package/{dist → types}/request/CommonUsernamePasswordRequest.d.ts +0 -0
  332. /package/{dist → types}/request/CommonUsernamePasswordRequest.d.ts.map +0 -0
  333. /package/{dist → types}/request/DeviceCodeRequest.d.ts +0 -0
  334. /package/{dist → types}/request/DeviceCodeRequest.d.ts.map +0 -0
  335. /package/{dist → types}/request/InteractiveRequest.d.ts +0 -0
  336. /package/{dist → types}/request/InteractiveRequest.d.ts.map +0 -0
  337. /package/{dist → types}/request/ManagedIdentityRequest.d.ts +0 -0
  338. /package/{dist → types}/request/ManagedIdentityRequest.d.ts.map +0 -0
  339. /package/{dist → types}/request/ManagedIdentityRequestParams.d.ts +0 -0
  340. /package/{dist → types}/request/ManagedIdentityRequestParams.d.ts.map +0 -0
  341. /package/{dist → types}/request/OnBehalfOfRequest.d.ts +0 -0
  342. /package/{dist → types}/request/OnBehalfOfRequest.d.ts.map +0 -0
  343. /package/{dist → types}/request/RefreshTokenRequest.d.ts +0 -0
  344. /package/{dist → types}/request/RefreshTokenRequest.d.ts.map +0 -0
  345. /package/{dist → types}/request/SignOutRequest.d.ts +0 -0
  346. /package/{dist → types}/request/SignOutRequest.d.ts.map +0 -0
  347. /package/{dist → types}/request/SilentFlowRequest.d.ts +0 -0
  348. /package/{dist → types}/request/SilentFlowRequest.d.ts.map +0 -0
  349. /package/{dist → types}/request/UsernamePasswordRequest.d.ts +0 -0
  350. /package/{dist → types}/request/UsernamePasswordRequest.d.ts.map +0 -0
  351. /package/{dist → types}/response/ManagedIdentityTokenResponse.d.ts +0 -0
  352. /package/{dist → types}/response/ManagedIdentityTokenResponse.d.ts.map +0 -0
  353. /package/{dist → types}/retry/DefaultManagedIdentityRetryPolicy.d.ts +0 -0
  354. /package/{dist → types}/retry/DefaultManagedIdentityRetryPolicy.d.ts.map +0 -0
  355. /package/{dist → types}/retry/ExponentialRetryStrategy.d.ts +0 -0
  356. /package/{dist → types}/retry/ExponentialRetryStrategy.d.ts.map +0 -0
  357. /package/{dist → types}/retry/IHttpRetryPolicy.d.ts +0 -0
  358. /package/{dist → types}/retry/IHttpRetryPolicy.d.ts.map +0 -0
  359. /package/{dist → types}/retry/ImdsRetryPolicy.d.ts +0 -0
  360. /package/{dist → types}/retry/ImdsRetryPolicy.d.ts.map +0 -0
  361. /package/{dist → types}/retry/LinearRetryStrategy.d.ts +0 -0
  362. /package/{dist → types}/retry/LinearRetryStrategy.d.ts.map +0 -0
  363. /package/{dist → types}/utils/EncodingUtils.d.ts +0 -0
  364. /package/{dist → types}/utils/EncodingUtils.d.ts.map +0 -0
  365. /package/{dist → types}/utils/NetworkUtils.d.ts +0 -0
  366. /package/{dist → types}/utils/NetworkUtils.d.ts.map +0 -0
  367. /package/{dist → types}/utils/TimeUtils.d.ts +0 -0
  368. /package/{dist → types}/utils/TimeUtils.d.ts.map +0 -0
package/lib/msal-node.cjs CHANGED
@@ -1,8 +1,8 @@
1
- /*! @azure/msal-node v5.1.4 2026-04-21 */
1
+ /*! @azure/msal-node v5.2.0 2026-05-07 */
2
2
  'use strict';
3
3
  'use strict';
4
4
 
5
- var uuid = require('uuid');
5
+ var node_crypto = require('node:crypto');
6
6
  var crypto = require('crypto');
7
7
  var jwt = require('jsonwebtoken');
8
8
  var http = require('http');
@@ -150,7 +150,7 @@ class Serializer {
150
150
  }
151
151
  }
152
152
 
153
- /*! @azure/msal-common v16.5.1 2026-04-21 */
153
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
154
154
  /*
155
155
  * Copyright (c) Microsoft Corporation. All rights reserved.
156
156
  * Licensed under the MIT License.
@@ -398,7 +398,7 @@ const EncodingTypes = {
398
398
  UTF8: "utf-8",
399
399
  };
400
400
 
401
- /*! @azure/msal-common v16.5.1 2026-04-21 */
401
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
402
402
  /*
403
403
  * Copyright (c) Microsoft Corporation. All rights reserved.
404
404
  * Licensed under the MIT License.
@@ -451,7 +451,7 @@ const INSTANCE_AWARE = "instance_aware";
451
451
  const RESOURCE = "resource";
452
452
  const CLI_DATA = "clidata";
453
453
 
454
- /*! @azure/msal-common v16.5.1 2026-04-21 */
454
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
455
455
  /*
456
456
  * Copyright (c) Microsoft Corporation. All rights reserved.
457
457
  * Licensed under the MIT License.
@@ -482,7 +482,7 @@ function createAuthError(code, additionalMessage) {
482
482
  return new AuthError(code, additionalMessage || getDefaultErrorMessage(code));
483
483
  }
484
484
 
485
- /*! @azure/msal-common v16.5.1 2026-04-21 */
485
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
486
486
 
487
487
  /*
488
488
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -502,7 +502,7 @@ function createClientConfigurationError(errorCode) {
502
502
  return new ClientConfigurationError(errorCode);
503
503
  }
504
504
 
505
- /*! @azure/msal-common v16.5.1 2026-04-21 */
505
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
506
506
  /*
507
507
  * Copyright (c) Microsoft Corporation. All rights reserved.
508
508
  * Licensed under the MIT License.
@@ -582,7 +582,7 @@ class StringUtils {
582
582
  }
583
583
  }
584
584
 
585
- /*! @azure/msal-common v16.5.1 2026-04-21 */
585
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
586
586
 
587
587
  /*
588
588
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -605,7 +605,7 @@ function createClientAuthError(errorCode, additionalMessage) {
605
605
  return new ClientAuthError(errorCode, additionalMessage);
606
606
  }
607
607
 
608
- /*! @azure/msal-common v16.5.1 2026-04-21 */
608
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
609
609
  /*
610
610
  * Copyright (c) Microsoft Corporation. All rights reserved.
611
611
  * Licensed under the MIT License.
@@ -659,7 +659,7 @@ var ClientConfigurationErrorCodes = /*#__PURE__*/Object.freeze({
659
659
  urlParseError: urlParseError
660
660
  });
661
661
 
662
- /*! @azure/msal-common v16.5.1 2026-04-21 */
662
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
663
663
  /*
664
664
  * Copyright (c) Microsoft Corporation. All rights reserved.
665
665
  * Licensed under the MIT License.
@@ -747,7 +747,7 @@ var ClientAuthErrorCodes = /*#__PURE__*/Object.freeze({
747
747
  userCanceled: userCanceled
748
748
  });
749
749
 
750
- /*! @azure/msal-common v16.5.1 2026-04-21 */
750
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
751
751
 
752
752
  /*
753
753
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -942,7 +942,7 @@ class ScopeSet {
942
942
  }
943
943
  }
944
944
 
945
- /*! @azure/msal-common v16.5.1 2026-04-21 */
945
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
946
946
 
947
947
  /*
948
948
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1349,7 +1349,7 @@ function addResource(parameters, resource) {
1349
1349
  }
1350
1350
  }
1351
1351
 
1352
- /*! @azure/msal-common v16.5.1 2026-04-21 */
1352
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
1353
1353
  /**
1354
1354
  * Parses hash string from given string. Returns empty string if no hash symbol is found.
1355
1355
  * @param hashString
@@ -1402,7 +1402,7 @@ function mapToQueryString(parameters) {
1402
1402
  return queryParameterArray.join("&");
1403
1403
  }
1404
1404
 
1405
- /*! @azure/msal-common v16.5.1 2026-04-21 */
1405
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
1406
1406
 
1407
1407
  /*
1408
1408
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1441,7 +1441,7 @@ const DEFAULT_CRYPTO_IMPLEMENTATION = {
1441
1441
  },
1442
1442
  };
1443
1443
 
1444
- /*! @azure/msal-common v16.5.1 2026-04-21 */
1444
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
1445
1445
  /*
1446
1446
  * Copyright (c) Microsoft Corporation. All rights reserved.
1447
1447
  * Licensed under the MIT License.
@@ -1702,12 +1702,12 @@ class Logger {
1702
1702
  }
1703
1703
  }
1704
1704
 
1705
- /*! @azure/msal-common v16.5.1 2026-04-21 */
1705
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
1706
1706
  /* eslint-disable header/header */
1707
1707
  const name$1 = "@azure/msal-common";
1708
- const version$1 = "16.5.1";
1708
+ const version$1 = "16.6.0";
1709
1709
 
1710
- /*! @azure/msal-common v16.5.1 2026-04-21 */
1710
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
1711
1711
  /*
1712
1712
  * Copyright (c) Microsoft Corporation. All rights reserved.
1713
1713
  * Licensed under the MIT License.
@@ -1727,7 +1727,7 @@ const AzureCloudInstance = {
1727
1727
  AzureUsGovernment: "https://login.microsoftonline.us",
1728
1728
  };
1729
1729
 
1730
- /*! @azure/msal-common v16.5.1 2026-04-21 */
1730
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
1731
1731
  /*
1732
1732
  * Copyright (c) Microsoft Corporation. All rights reserved.
1733
1733
  * Licensed under the MIT License.
@@ -1810,7 +1810,7 @@ function updateAccountTenantProfileData(baseAccountInfo, tenantProfile, idTokenC
1810
1810
  return updatedAccountInfo;
1811
1811
  }
1812
1812
 
1813
- /*! @azure/msal-common v16.5.1 2026-04-21 */
1813
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
1814
1814
 
1815
1815
  /*
1816
1816
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1890,7 +1890,7 @@ function checkMaxAge(authTime, maxAge) {
1890
1890
  }
1891
1891
  }
1892
1892
 
1893
- /*! @azure/msal-common v16.5.1 2026-04-21 */
1893
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
1894
1894
 
1895
1895
  /*
1896
1896
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2047,7 +2047,7 @@ class UrlString {
2047
2047
  }
2048
2048
  }
2049
2049
 
2050
- /*! @azure/msal-common v16.5.1 2026-04-21 */
2050
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
2051
2051
 
2052
2052
  /*
2053
2053
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2204,7 +2204,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
2204
2204
  return null;
2205
2205
  }
2206
2206
 
2207
- /*! @azure/msal-common v16.5.1 2026-04-21 */
2207
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
2208
2208
  /*
2209
2209
  * Copyright (c) Microsoft Corporation. All rights reserved.
2210
2210
  * Licensed under the MIT License.
@@ -2212,7 +2212,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
2212
2212
  const cacheQuotaExceeded = "cache_quota_exceeded";
2213
2213
  const cacheErrorUnknown = "cache_error_unknown";
2214
2214
 
2215
- /*! @azure/msal-common v16.5.1 2026-04-21 */
2215
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
2216
2216
 
2217
2217
  /*
2218
2218
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2250,7 +2250,7 @@ function createCacheError(e) {
2250
2250
  }
2251
2251
  }
2252
2252
 
2253
- /*! @azure/msal-common v16.5.1 2026-04-21 */
2253
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
2254
2254
 
2255
2255
  /*
2256
2256
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2288,7 +2288,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
2288
2288
  };
2289
2289
  }
2290
2290
 
2291
- /*! @azure/msal-common v16.5.1 2026-04-21 */
2291
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
2292
2292
  /*
2293
2293
  * Copyright (c) Microsoft Corporation. All rights reserved.
2294
2294
  * Licensed under the MIT License.
@@ -2303,7 +2303,7 @@ const AuthorityType = {
2303
2303
  Ciam: 3,
2304
2304
  };
2305
2305
 
2306
- /*! @azure/msal-common v16.5.1 2026-04-21 */
2306
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
2307
2307
  /*
2308
2308
  * Copyright (c) Microsoft Corporation. All rights reserved.
2309
2309
  * Licensed under the MIT License.
@@ -2325,7 +2325,7 @@ function getTenantIdFromIdTokenClaims(idTokenClaims) {
2325
2325
  return null;
2326
2326
  }
2327
2327
 
2328
- /*! @azure/msal-common v16.5.1 2026-04-21 */
2328
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
2329
2329
  /*
2330
2330
  * Copyright (c) Microsoft Corporation. All rights reserved.
2331
2331
  * Licensed under the MIT License.
@@ -2349,7 +2349,7 @@ const ProtocolMode = {
2349
2349
  EAR: "EAR",
2350
2350
  };
2351
2351
 
2352
- /*! @azure/msal-common v16.5.1 2026-04-21 */
2352
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
2353
2353
  /**
2354
2354
  * Returns the AccountInfo interface for this account.
2355
2355
  */
@@ -2492,7 +2492,7 @@ function isAccountEntity(entity) {
2492
2492
  entity.hasOwnProperty("authorityType"));
2493
2493
  }
2494
2494
 
2495
- /*! @azure/msal-common v16.5.1 2026-04-21 */
2495
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
2496
2496
 
2497
2497
  /*
2498
2498
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2530,8 +2530,10 @@ class CacheManager {
2530
2530
  const allAccounts = this.getAllAccounts(accountFilter, correlationId);
2531
2531
  if (allAccounts.length > 1) {
2532
2532
  // If one or more accounts are found, prioritize accounts that have an ID token
2533
- const sortedAccounts = allAccounts.sort((account) => {
2534
- return account.idTokenClaims ? -1 : 1;
2533
+ const sortedAccounts = allAccounts.sort((a, b) => {
2534
+ const aHasClaims = a.idTokenClaims ? 1 : 0;
2535
+ const bHasClaims = b.idTokenClaims ? 1 : 0;
2536
+ return bHasClaims - aHasClaims;
2535
2537
  });
2536
2538
  return sortedAccounts[0];
2537
2539
  }
@@ -3621,7 +3623,7 @@ class DefaultStorageClass extends CacheManager {
3621
3623
  }
3622
3624
  }
3623
3625
 
3624
- /*! @azure/msal-common v16.5.1 2026-04-21 */
3626
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
3625
3627
  /*
3626
3628
  * Copyright (c) Microsoft Corporation. All rights reserved.
3627
3629
  * Licensed under the MIT License.
@@ -3635,7 +3637,7 @@ class DefaultStorageClass extends CacheManager {
3635
3637
  const PerformanceEventStatus = {
3636
3638
  InProgress: 1};
3637
3639
 
3638
- /*! @azure/msal-common v16.5.1 2026-04-21 */
3640
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
3639
3641
 
3640
3642
  /*
3641
3643
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3690,7 +3692,7 @@ class StubPerformanceClient {
3690
3692
  }
3691
3693
  }
3692
3694
 
3693
- /*! @azure/msal-common v16.5.1 2026-04-21 */
3695
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
3694
3696
 
3695
3697
  /*
3696
3698
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3785,7 +3787,7 @@ function isOidcProtocolMode(config) {
3785
3787
  return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
3786
3788
  }
3787
3789
 
3788
- /*! @azure/msal-common v16.5.1 2026-04-21 */
3790
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
3789
3791
  /*
3790
3792
  * Copyright (c) Microsoft Corporation. All rights reserved.
3791
3793
  * Licensed under the MIT License.
@@ -3812,7 +3814,7 @@ function isOidcProtocolMode(config) {
3812
3814
  }
3813
3815
  }
3814
3816
 
3815
- /*! @azure/msal-common v16.5.1 2026-04-21 */
3817
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
3816
3818
  /*
3817
3819
  * Copyright (c) Microsoft Corporation. All rights reserved.
3818
3820
  * Licensed under the MIT License.
@@ -3867,7 +3869,7 @@ function delay(t, value) {
3867
3869
  return new Promise((resolve) => setTimeout(() => resolve(value), t));
3868
3870
  }
3869
3871
 
3870
- /*! @azure/msal-common v16.5.1 2026-04-21 */
3872
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
3871
3873
 
3872
3874
  /*
3873
3875
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4126,7 +4128,7 @@ function isAuthorityMetadataExpired(metadata) {
4126
4128
  return metadata.expiresAt <= nowSeconds();
4127
4129
  }
4128
4130
 
4129
- /*! @azure/msal-common v16.5.1 2026-04-21 */
4131
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
4130
4132
  /*
4131
4133
  * Copyright (c) Microsoft Corporation. All rights reserved.
4132
4134
  * Licensed under the MIT License.
@@ -4188,7 +4190,7 @@ const RegionDiscoveryGetCurrentVersion = "regionDiscoveryGetCurrentVersion";
4188
4190
  */
4189
4191
  const CacheManagerGetRefreshToken = "cacheManagerGetRefreshToken";
4190
4192
 
4191
- /*! @azure/msal-common v16.5.1 2026-04-21 */
4193
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
4192
4194
  /*
4193
4195
  * Copyright (c) Microsoft Corporation. All rights reserved.
4194
4196
  * Licensed under the MIT License.
@@ -4281,7 +4283,7 @@ const invokeAsync = (callback, eventName, logger, telemetryClient, correlationId
4281
4283
  };
4282
4284
  };
4283
4285
 
4284
- /*! @azure/msal-common v16.5.1 2026-04-21 */
4286
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
4285
4287
 
4286
4288
  /*
4287
4289
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4361,7 +4363,7 @@ class PopTokenGenerator {
4361
4363
  }
4362
4364
  }
4363
4365
 
4364
- /*! @azure/msal-common v16.5.1 2026-04-21 */
4366
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
4365
4367
  /*
4366
4368
  * Copyright (c) Microsoft Corporation. All rights reserved.
4367
4369
  * Licensed under the MIT License.
@@ -4425,7 +4427,7 @@ var InteractionRequiredAuthErrorCodes = /*#__PURE__*/Object.freeze({
4425
4427
  uxNotAllowed: uxNotAllowed
4426
4428
  });
4427
4429
 
4428
- /*! @azure/msal-common v16.5.1 2026-04-21 */
4430
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
4429
4431
 
4430
4432
  /*
4431
4433
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4493,7 +4495,7 @@ function createInteractionRequiredAuthError(errorCode, errorMessage) {
4493
4495
  return new InteractionRequiredAuthError(errorCode, errorMessage);
4494
4496
  }
4495
4497
 
4496
- /*! @azure/msal-common v16.5.1 2026-04-21 */
4498
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
4497
4499
 
4498
4500
  /*
4499
4501
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4512,7 +4514,7 @@ class ServerError extends AuthError {
4512
4514
  }
4513
4515
  }
4514
4516
 
4515
- /*! @azure/msal-common v16.5.1 2026-04-21 */
4517
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
4516
4518
  /**
4517
4519
  * Parses the state into the RequestStateObject, which contains the LibraryState info and the state passed by the user.
4518
4520
  * @param base64Decode
@@ -4544,7 +4546,7 @@ function parseRequestState(base64Decode, state) {
4544
4546
  }
4545
4547
  }
4546
4548
 
4547
- /*! @azure/msal-common v16.5.1 2026-04-21 */
4549
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
4548
4550
 
4549
4551
  /*
4550
4552
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4892,7 +4894,7 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decod
4892
4894
  return baseAccount;
4893
4895
  }
4894
4896
 
4895
- /*! @azure/msal-common v16.5.1 2026-04-21 */
4897
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
4896
4898
  /*
4897
4899
  * Copyright (c) Microsoft Corporation. All rights reserved.
4898
4900
  * Licensed under the MIT License.
@@ -4902,7 +4904,7 @@ const CcsCredentialType = {
4902
4904
  UPN: "UPN",
4903
4905
  };
4904
4906
 
4905
- /*! @azure/msal-common v16.5.1 2026-04-21 */
4907
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
4906
4908
  /*
4907
4909
  * Copyright (c) Microsoft Corporation. All rights reserved.
4908
4910
  * Licensed under the MIT License.
@@ -4920,7 +4922,7 @@ async function getClientAssertion(clientAssertion, clientId, tokenEndpoint) {
4920
4922
  }
4921
4923
  }
4922
4924
 
4923
- /*! @azure/msal-common v16.5.1 2026-04-21 */
4925
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
4924
4926
  /*
4925
4927
  * Copyright (c) Microsoft Corporation. All rights reserved.
4926
4928
  * Licensed under the MIT License.
@@ -4941,7 +4943,7 @@ function getRequestThumbprint(clientId, request, homeAccountId) {
4941
4943
  };
4942
4944
  }
4943
4945
 
4944
- /*! @azure/msal-common v16.5.1 2026-04-21 */
4946
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
4945
4947
 
4946
4948
  /*
4947
4949
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5027,7 +5029,7 @@ class ThrottlingUtils {
5027
5029
  }
5028
5030
  }
5029
5031
 
5030
- /*! @azure/msal-common v16.5.1 2026-04-21 */
5032
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
5031
5033
 
5032
5034
  /*
5033
5035
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5058,7 +5060,7 @@ function createNetworkError(error, httpStatus, responseHeaders, additionalError)
5058
5060
  return new NetworkError(error, httpStatus, responseHeaders);
5059
5061
  }
5060
5062
 
5061
- /*! @azure/msal-common v16.5.1 2026-04-21 */
5063
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
5062
5064
 
5063
5065
  /*
5064
5066
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5172,7 +5174,7 @@ async function sendPostRequest(thumbprint, tokenEndpoint, options, correlationId
5172
5174
  return response;
5173
5175
  }
5174
5176
 
5175
- /*! @azure/msal-common v16.5.1 2026-04-21 */
5177
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
5176
5178
  /*
5177
5179
  * Copyright (c) Microsoft Corporation. All rights reserved.
5178
5180
  * Licensed under the MIT License.
@@ -5184,7 +5186,7 @@ function isOpenIdConfigResponse(response) {
5184
5186
  response.hasOwnProperty("jwks_uri"));
5185
5187
  }
5186
5188
 
5187
- /*! @azure/msal-common v16.5.1 2026-04-21 */
5189
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
5188
5190
  /*
5189
5191
  * Copyright (c) Microsoft Corporation. All rights reserved.
5190
5192
  * Licensed under the MIT License.
@@ -5194,7 +5196,7 @@ function isCloudInstanceDiscoveryResponse(response) {
5194
5196
  response.hasOwnProperty("metadata"));
5195
5197
  }
5196
5198
 
5197
- /*! @azure/msal-common v16.5.1 2026-04-21 */
5199
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
5198
5200
  /*
5199
5201
  * Copyright (c) Microsoft Corporation. All rights reserved.
5200
5202
  * Licensed under the MIT License.
@@ -5204,7 +5206,7 @@ function isCloudInstanceDiscoveryErrorResponse(response) {
5204
5206
  response.hasOwnProperty("error_description"));
5205
5207
  }
5206
5208
 
5207
- /*! @azure/msal-common v16.5.1 2026-04-21 */
5209
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
5208
5210
 
5209
5211
  /*
5210
5212
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5309,7 +5311,7 @@ RegionDiscovery.IMDS_OPTIONS = {
5309
5311
  },
5310
5312
  };
5311
5313
 
5312
- /*! @azure/msal-common v16.5.1 2026-04-21 */
5314
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
5313
5315
 
5314
5316
  /*
5315
5317
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6132,7 +6134,7 @@ function buildStaticAuthorityOptions(authOptions) {
6132
6134
  };
6133
6135
  }
6134
6136
 
6135
- /*! @azure/msal-common v16.5.1 2026-04-21 */
6137
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
6136
6138
 
6137
6139
  /*
6138
6140
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6166,7 +6168,7 @@ async function createDiscoveredInstance(authorityUri, networkClient, cacheManage
6166
6168
  }
6167
6169
  }
6168
6170
 
6169
- /*! @azure/msal-common v16.5.1 2026-04-21 */
6171
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
6170
6172
 
6171
6173
  /*
6172
6174
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6423,7 +6425,7 @@ class AuthorizationCodeClient {
6423
6425
  }
6424
6426
  }
6425
6427
 
6426
- /*! @azure/msal-common v16.5.1 2026-04-21 */
6428
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
6427
6429
 
6428
6430
  /*
6429
6431
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6644,7 +6646,7 @@ class RefreshTokenClient {
6644
6646
  }
6645
6647
  }
6646
6648
 
6647
- /*! @azure/msal-common v16.5.1 2026-04-21 */
6649
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
6648
6650
 
6649
6651
  /*
6650
6652
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6760,7 +6762,7 @@ class SilentFlowClient {
6760
6762
  }
6761
6763
  }
6762
6764
 
6763
- /*! @azure/msal-common v16.5.1 2026-04-21 */
6765
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
6764
6766
 
6765
6767
  /*
6766
6768
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6909,7 +6911,7 @@ function extractLoginHint(account) {
6909
6911
  return account.loginHint || account.idTokenClaims?.login_hint || null;
6910
6912
  }
6911
6913
 
6912
- /*! @azure/msal-common v16.5.1 2026-04-21 */
6914
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
6913
6915
 
6914
6916
  /*
6915
6917
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6942,7 +6944,7 @@ function containsResourceParam(params) {
6942
6944
  return Object.prototype.hasOwnProperty.call(params, "resource");
6943
6945
  }
6944
6946
 
6945
- /*! @azure/msal-common v16.5.1 2026-04-21 */
6947
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
6946
6948
  /*
6947
6949
  * Copyright (c) Microsoft Corporation. All rights reserved.
6948
6950
  * Licensed under the MIT License.
@@ -6959,7 +6961,7 @@ var AuthErrorCodes = /*#__PURE__*/Object.freeze({
6959
6961
  unexpectedError: unexpectedError
6960
6962
  });
6961
6963
 
6962
- /*! @azure/msal-common v16.5.1 2026-04-21 */
6964
+ /*! @azure/msal-common v16.6.0 2026-05-07 */
6963
6965
 
6964
6966
  /*
6965
6967
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7423,6 +7425,9 @@ const ManagedIdentityHeaders = {
7423
7425
  METADATA_HEADER_NAME: "Metadata",
7424
7426
  APP_SERVICE_SECRET_HEADER_NAME: "X-IDENTITY-HEADER",
7425
7427
  ML_AND_SF_SECRET_HEADER_NAME: "secret",
7428
+ CLIENT_SKU: X_CLIENT_SKU,
7429
+ CLIENT_VER: X_CLIENT_VER,
7430
+ CLIENT_REQUEST_ID: "x-ms-client-request-id",
7426
7431
  };
7427
7432
  /**
7428
7433
  * Managed Identity Query Parameters - used in network requests
@@ -8042,12 +8047,11 @@ function buildManagedIdentityConfiguration({ clientCapabilities, managedIdentity
8042
8047
  */
8043
8048
  class GuidGenerator {
8044
8049
  /**
8045
- *
8046
- * RFC4122: The version 4 UUID is meant for generating UUIDs from truly-random or pseudo-random numbers.
8047
- * uuidv4 generates guids from cryprtographically-string random
8050
+ * Generates a random [RFC 4122](https://www.rfc-editor.org/rfc/rfc4122.txt) version 4 UUID. The UUID is generated using a
8051
+ * cryptographic pseudorandom number generator.
8048
8052
  */
8049
8053
  generateGuid() {
8050
- return uuid.v4();
8054
+ return node_crypto.randomUUID();
8051
8055
  }
8052
8056
  /**
8053
8057
  * verifies if a string is GUID
@@ -8668,7 +8672,7 @@ class NodeStorage extends CacheManager {
8668
8672
  return [...Object.keys(cache)];
8669
8673
  }
8670
8674
  /**
8671
- * Clears all cache entries created by MSAL (except tokens).
8675
+ * Clears all cache entries created by MSAL except authority metadata..
8672
8676
  */
8673
8677
  clear() {
8674
8678
  this.logger.trace("Clearing cache entries created by MSAL", "");
@@ -8676,6 +8680,9 @@ class NodeStorage extends CacheManager {
8676
8680
  const cacheKeys = this.getKeys();
8677
8681
  // delete each element
8678
8682
  cacheKeys.forEach((key) => {
8683
+ if (this.isAuthorityMetadata(key)) {
8684
+ return;
8685
+ }
8679
8686
  this.removeItem(key);
8680
8687
  });
8681
8688
  this.emitChange();
@@ -9162,7 +9169,7 @@ class ClientAssertion {
9162
9169
 
9163
9170
  /* eslint-disable header/header */
9164
9171
  const name = "@azure/msal-node";
9165
- const version = "5.1.4";
9172
+ const version = "5.2.0";
9166
9173
 
9167
9174
  /*
9168
9175
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -9711,7 +9718,7 @@ class ClientApplication {
9711
9718
  return createDiscoveredInstance(authorityUrl, this.config.system.networkClient, this.storage, authorityOptions, this.logger, requestCorrelationId, new StubPerformanceClient());
9712
9719
  }
9713
9720
  /**
9714
- * Clear the cache
9721
+ * Clear the cache except for authority metadata.
9715
9722
  */
9716
9723
  clearCache() {
9717
9724
  this.storage.clear();
@@ -10966,6 +10973,14 @@ class BaseManagedIdentitySource {
10966
10973
  this.cryptoProvider = cryptoProvider;
10967
10974
  this.disableInternalRetries = disableInternalRetries;
10968
10975
  }
10976
+ /**
10977
+ * Generates a new correlation ID for request tracing.
10978
+ *
10979
+ * @returns A new GUID string for use as a correlation or request ID
10980
+ */
10981
+ createCorrelationId() {
10982
+ return this.cryptoProvider.createNewGuid();
10983
+ }
10969
10984
  /**
10970
10985
  * Processes the network response and converts it to a standardized server token response.
10971
10986
  * This async version allows for source-specific response processing logic while maintaining
@@ -11899,6 +11914,11 @@ class Imds extends BaseManagedIdentitySource {
11899
11914
  createRequest(resource, managedIdentityId) {
11900
11915
  const request = new ManagedIdentityRequestParameters(HttpMethod.GET, this.identityEndpoint);
11901
11916
  request.headers[ManagedIdentityHeaders.METADATA_HEADER_NAME] = "true";
11917
+ request.headers[ManagedIdentityHeaders.CLIENT_SKU] =
11918
+ Constants.MSAL_SKU;
11919
+ request.headers[ManagedIdentityHeaders.CLIENT_VER] = version;
11920
+ request.headers[ManagedIdentityHeaders.CLIENT_REQUEST_ID] =
11921
+ this.createCorrelationId();
11902
11922
  request.queryParameters[ManagedIdentityQueryParameters.API_VERSION] =
11903
11923
  IMDS_API_VERSION;
11904
11924
  request.queryParameters[ManagedIdentityQueryParameters.RESOURCE] =