@azure/msal-browser 4.21.1 → 4.22.1

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 (326) hide show
  1. package/dist/app/IPublicClientApplication.mjs +1 -1
  2. package/dist/app/PublicClientApplication.mjs +1 -1
  3. package/dist/app/PublicClientNext.mjs +1 -1
  4. package/dist/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
  5. package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs +1 -1
  6. package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
  7. package/dist/broker/nativeBroker/PlatformAuthProvider.mjs +1 -1
  8. package/dist/cache/AccountManager.mjs +1 -1
  9. package/dist/cache/AsyncMemoryStorage.mjs +1 -1
  10. package/dist/cache/BrowserCacheManager.mjs +1 -1
  11. package/dist/cache/CacheHelpers.mjs +1 -1
  12. package/dist/cache/CacheKeys.mjs +1 -1
  13. package/dist/cache/CookieStorage.mjs +1 -1
  14. package/dist/cache/DatabaseStorage.mjs +1 -1
  15. package/dist/cache/EncryptedData.mjs +1 -1
  16. package/dist/cache/LocalStorage.mjs +1 -1
  17. package/dist/cache/MemoryStorage.mjs +1 -1
  18. package/dist/cache/SessionStorage.mjs +1 -1
  19. package/dist/cache/TokenCache.mjs +1 -1
  20. package/dist/config/Configuration.mjs +1 -1
  21. package/dist/controllers/ControllerFactory.mjs +1 -1
  22. package/dist/controllers/NestedAppAuthController.mjs +1 -1
  23. package/dist/controllers/StandardController.mjs +1 -1
  24. package/dist/controllers/UnknownOperatingContextController.mjs +1 -1
  25. package/dist/crypto/BrowserCrypto.mjs +1 -1
  26. package/dist/crypto/CryptoOps.mjs +1 -1
  27. package/dist/crypto/PkceGenerator.mjs +1 -1
  28. package/dist/crypto/SignedHttpRequest.mjs +1 -1
  29. package/dist/custom-auth-path/app/PublicClientApplication.mjs +1 -1
  30. package/dist/custom-auth-path/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
  31. package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthDOMHandler.mjs +1 -1
  32. package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
  33. package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthProvider.mjs +1 -1
  34. package/dist/custom-auth-path/cache/AccountManager.mjs +1 -1
  35. package/dist/custom-auth-path/cache/AsyncMemoryStorage.mjs +1 -1
  36. package/dist/custom-auth-path/cache/BrowserCacheManager.mjs +1 -1
  37. package/dist/custom-auth-path/cache/CacheHelpers.mjs +1 -1
  38. package/dist/custom-auth-path/cache/CacheKeys.mjs +1 -1
  39. package/dist/custom-auth-path/cache/CookieStorage.mjs +1 -1
  40. package/dist/custom-auth-path/cache/DatabaseStorage.mjs +1 -1
  41. package/dist/custom-auth-path/cache/EncryptedData.mjs +1 -1
  42. package/dist/custom-auth-path/cache/LocalStorage.mjs +1 -1
  43. package/dist/custom-auth-path/cache/MemoryStorage.mjs +1 -1
  44. package/dist/custom-auth-path/cache/SessionStorage.mjs +1 -1
  45. package/dist/custom-auth-path/cache/TokenCache.mjs +1 -1
  46. package/dist/custom-auth-path/config/Configuration.mjs +1 -1
  47. package/dist/custom-auth-path/controllers/ControllerFactory.mjs +1 -1
  48. package/dist/custom-auth-path/controllers/StandardController.mjs +1 -1
  49. package/dist/custom-auth-path/crypto/BrowserCrypto.mjs +1 -1
  50. package/dist/custom-auth-path/crypto/CryptoOps.mjs +1 -1
  51. package/dist/custom-auth-path/crypto/PkceGenerator.mjs +1 -1
  52. package/dist/custom-auth-path/custom_auth/CustomAuthConstants.d.ts +1 -1
  53. package/dist/custom-auth-path/custom_auth/CustomAuthConstants.mjs +1 -1
  54. package/dist/custom-auth-path/custom_auth/CustomAuthPublicClientApplication.mjs +1 -1
  55. package/dist/custom-auth-path/custom_auth/configuration/CustomAuthConfiguration.d.ts +1 -0
  56. package/dist/custom-auth-path/custom_auth/configuration/CustomAuthConfiguration.d.ts.map +1 -1
  57. package/dist/custom-auth-path/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
  58. package/dist/custom-auth-path/custom_auth/controller/CustomAuthStandardController.mjs +2 -2
  59. package/dist/custom-auth-path/custom_auth/controller/CustomAuthStandardController.mjs.map +1 -1
  60. package/dist/custom-auth-path/custom_auth/core/CustomAuthAuthority.mjs +1 -1
  61. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs +1 -1
  62. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowResultBase.mjs +1 -1
  63. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowState.mjs +1 -1
  64. package/dist/custom-auth-path/custom_auth/core/error/CustomAuthApiError.mjs +1 -1
  65. package/dist/custom-auth-path/custom_auth/core/error/CustomAuthError.mjs +1 -1
  66. package/dist/custom-auth-path/custom_auth/core/error/HttpError.mjs +1 -1
  67. package/dist/custom-auth-path/custom_auth/core/error/HttpErrorCodes.mjs +1 -1
  68. package/dist/custom-auth-path/custom_auth/core/error/InvalidArgumentError.mjs +1 -1
  69. package/dist/custom-auth-path/custom_auth/core/error/InvalidConfigurationError.mjs +1 -1
  70. package/dist/custom-auth-path/custom_auth/core/error/InvalidConfigurationErrorCodes.mjs +1 -1
  71. package/dist/custom-auth-path/custom_auth/core/error/MethodNotImplementedError.mjs +1 -1
  72. package/dist/custom-auth-path/custom_auth/core/error/MsalCustomAuthError.mjs +1 -1
  73. package/dist/custom-auth-path/custom_auth/core/error/NoCachedAccountFoundError.mjs +1 -1
  74. package/dist/custom-auth-path/custom_auth/core/error/ParsedUrlError.mjs +1 -1
  75. package/dist/custom-auth-path/custom_auth/core/error/ParsedUrlErrorCodes.mjs +1 -1
  76. package/dist/custom-auth-path/custom_auth/core/error/UnexpectedError.mjs +1 -1
  77. package/dist/custom-auth-path/custom_auth/core/error/UnsupportedEnvironmentError.mjs +1 -1
  78. package/dist/custom-auth-path/custom_auth/core/error/UserAccountAttributeError.mjs +1 -1
  79. package/dist/custom-auth-path/custom_auth/core/error/UserAlreadySignedInError.mjs +1 -1
  80. package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs +4 -1
  81. package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs.map +1 -1
  82. package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs +1 -1
  83. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/BaseApiClient.d.ts +2 -1
  84. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/BaseApiClient.d.ts.map +1 -1
  85. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs +4 -3
  86. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs.map +1 -1
  87. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts +1 -1
  88. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts.map +1 -1
  89. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs +5 -5
  90. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs.map +1 -1
  91. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs +1 -1
  92. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.d.ts +1 -1
  93. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.d.ts.map +1 -1
  94. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs +3 -3
  95. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs.map +1 -1
  96. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts +1 -1
  97. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts.map +1 -1
  98. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs +3 -3
  99. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs.map +1 -1
  100. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignupApiClient.d.ts +1 -1
  101. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignupApiClient.d.ts.map +1 -1
  102. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs +3 -3
  103. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs.map +1 -1
  104. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs +1 -1
  105. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs +1 -1
  106. package/dist/custom-auth-path/custom_auth/core/network_client/http_client/FetchHttpClient.mjs +1 -1
  107. package/dist/custom-auth-path/custom_auth/core/network_client/http_client/IHttpClient.mjs +1 -1
  108. package/dist/custom-auth-path/custom_auth/core/telemetry/PublicApiId.mjs +1 -1
  109. package/dist/custom-auth-path/custom_auth/core/utils/ArgumentValidator.mjs +1 -1
  110. package/dist/custom-auth-path/custom_auth/core/utils/UrlUtils.d.ts +1 -1
  111. package/dist/custom-auth-path/custom_auth/core/utils/UrlUtils.d.ts.map +1 -1
  112. package/dist/custom-auth-path/custom_auth/core/utils/UrlUtils.mjs +10 -2
  113. package/dist/custom-auth-path/custom_auth/core/utils/UrlUtils.mjs.map +1 -1
  114. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs +1 -1
  115. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs +1 -1
  116. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.mjs +1 -1
  117. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/GetAccountResult.mjs +1 -1
  118. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/SignOutResult.mjs +1 -1
  119. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/GetAccessTokenState.mjs +1 -1
  120. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/GetAccountState.mjs +1 -1
  121. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/SignOutState.mjs +1 -1
  122. package/dist/custom-auth-path/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs +1 -1
  123. package/dist/custom-auth-path/custom_auth/index.mjs +1 -1
  124. package/dist/custom-auth-path/custom_auth/operating_context/CustomAuthOperatingContext.mjs +1 -1
  125. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs +1 -1
  126. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs +1 -1
  127. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.mjs +1 -1
  128. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.mjs +1 -1
  129. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.mjs +1 -1
  130. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs +1 -1
  131. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.mjs +1 -1
  132. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.mjs +1 -1
  133. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs +1 -1
  134. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs +1 -1
  135. package/dist/custom-auth-path/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs +1 -1
  136. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/SignInScenario.mjs +1 -1
  137. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs +1 -1
  138. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs +1 -1
  139. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResult.mjs +1 -1
  140. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +1 -1
  141. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.mjs +1 -1
  142. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +1 -1
  143. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs +1 -1
  144. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCompletedState.mjs +1 -1
  145. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs +1 -1
  146. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInFailedState.mjs +1 -1
  147. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs +1 -1
  148. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInState.mjs +1 -1
  149. package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/SignInClient.mjs +1 -1
  150. package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs +1 -1
  151. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/error_type/SignUpError.mjs +1 -1
  152. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs +1 -1
  153. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpResult.mjs +1 -1
  154. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.mjs +1 -1
  155. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.mjs +1 -1
  156. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.mjs +1 -1
  157. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs +1 -1
  158. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs +1 -1
  159. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.mjs +1 -1
  160. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpFailedState.mjs +1 -1
  161. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs +1 -1
  162. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpState.mjs +1 -1
  163. package/dist/custom-auth-path/custom_auth/sign_up/interaction_client/SignUpClient.mjs +1 -1
  164. package/dist/custom-auth-path/custom_auth/sign_up/interaction_client/result/SignUpActionResult.mjs +1 -1
  165. package/dist/custom-auth-path/encode/Base64Decode.mjs +1 -1
  166. package/dist/custom-auth-path/encode/Base64Encode.mjs +1 -1
  167. package/dist/custom-auth-path/error/BrowserAuthError.mjs +1 -1
  168. package/dist/custom-auth-path/error/BrowserAuthErrorCodes.mjs +1 -1
  169. package/dist/custom-auth-path/error/BrowserConfigurationAuthError.mjs +1 -1
  170. package/dist/custom-auth-path/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
  171. package/dist/custom-auth-path/error/NativeAuthError.mjs +1 -1
  172. package/dist/custom-auth-path/error/NativeAuthErrorCodes.mjs +1 -1
  173. package/dist/custom-auth-path/event/EventHandler.mjs +1 -1
  174. package/dist/custom-auth-path/event/EventType.mjs +1 -1
  175. package/dist/custom-auth-path/interaction_client/BaseInteractionClient.mjs +1 -1
  176. package/dist/custom-auth-path/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
  177. package/dist/custom-auth-path/interaction_client/PlatformAuthInteractionClient.mjs +1 -1
  178. package/dist/custom-auth-path/interaction_client/PopupClient.mjs +1 -1
  179. package/dist/custom-auth-path/interaction_client/RedirectClient.mjs +1 -1
  180. package/dist/custom-auth-path/interaction_client/SilentAuthCodeClient.mjs +1 -1
  181. package/dist/custom-auth-path/interaction_client/SilentCacheClient.mjs +1 -1
  182. package/dist/custom-auth-path/interaction_client/SilentIframeClient.mjs +1 -1
  183. package/dist/custom-auth-path/interaction_client/SilentRefreshClient.mjs +1 -1
  184. package/dist/custom-auth-path/interaction_client/StandardInteractionClient.mjs +1 -1
  185. package/dist/custom-auth-path/interaction_handler/InteractionHandler.mjs +1 -1
  186. package/dist/custom-auth-path/interaction_handler/SilentHandler.mjs +1 -1
  187. package/dist/custom-auth-path/navigation/NavigationClient.mjs +1 -1
  188. package/dist/custom-auth-path/network/FetchClient.mjs +1 -1
  189. package/dist/custom-auth-path/operatingcontext/BaseOperatingContext.mjs +1 -1
  190. package/dist/custom-auth-path/operatingcontext/StandardOperatingContext.mjs +1 -1
  191. package/dist/custom-auth-path/packageMetadata.d.ts +1 -1
  192. package/dist/custom-auth-path/packageMetadata.mjs +2 -2
  193. package/dist/custom-auth-path/protocol/Authorize.mjs +1 -1
  194. package/dist/custom-auth-path/request/RequestHelpers.mjs +1 -1
  195. package/dist/custom-auth-path/response/ResponseHandler.mjs +1 -1
  196. package/dist/custom-auth-path/utils/BrowserConstants.mjs +1 -1
  197. package/dist/custom-auth-path/utils/BrowserProtocolUtils.mjs +1 -1
  198. package/dist/custom-auth-path/utils/BrowserUtils.d.ts +2 -1
  199. package/dist/custom-auth-path/utils/BrowserUtils.d.ts.map +1 -1
  200. package/dist/custom-auth-path/utils/BrowserUtils.mjs +1 -1
  201. package/dist/custom-auth-path/utils/BrowserUtils.mjs.map +1 -1
  202. package/dist/custom-auth-path/utils/Helpers.mjs +1 -1
  203. package/dist/custom-auth-path/utils/MsalFrameStatsUtils.mjs +1 -1
  204. package/dist/custom_auth/CustomAuthConstants.d.ts +1 -1
  205. package/dist/custom_auth/configuration/CustomAuthConfiguration.d.ts +1 -0
  206. package/dist/custom_auth/configuration/CustomAuthConfiguration.d.ts.map +1 -1
  207. package/dist/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
  208. package/dist/custom_auth/core/network_client/custom_auth_api/BaseApiClient.d.ts +2 -1
  209. package/dist/custom_auth/core/network_client/custom_auth_api/BaseApiClient.d.ts.map +1 -1
  210. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts +1 -1
  211. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts.map +1 -1
  212. package/dist/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.d.ts +1 -1
  213. package/dist/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.d.ts.map +1 -1
  214. package/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts +1 -1
  215. package/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts.map +1 -1
  216. package/dist/custom_auth/core/network_client/custom_auth_api/SignupApiClient.d.ts +1 -1
  217. package/dist/custom_auth/core/network_client/custom_auth_api/SignupApiClient.d.ts.map +1 -1
  218. package/dist/custom_auth/core/utils/UrlUtils.d.ts +1 -1
  219. package/dist/custom_auth/core/utils/UrlUtils.d.ts.map +1 -1
  220. package/dist/encode/Base64Decode.mjs +1 -1
  221. package/dist/encode/Base64Encode.mjs +1 -1
  222. package/dist/error/BrowserAuthError.mjs +1 -1
  223. package/dist/error/BrowserAuthErrorCodes.mjs +1 -1
  224. package/dist/error/BrowserConfigurationAuthError.mjs +1 -1
  225. package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
  226. package/dist/error/NativeAuthError.mjs +1 -1
  227. package/dist/error/NativeAuthErrorCodes.mjs +1 -1
  228. package/dist/error/NestedAppAuthError.mjs +1 -1
  229. package/dist/event/EventHandler.mjs +1 -1
  230. package/dist/event/EventMessage.mjs +1 -1
  231. package/dist/event/EventType.mjs +1 -1
  232. package/dist/index.mjs +1 -1
  233. package/dist/interaction_client/BaseInteractionClient.mjs +1 -1
  234. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
  235. package/dist/interaction_client/PlatformAuthInteractionClient.mjs +1 -1
  236. package/dist/interaction_client/PopupClient.mjs +1 -1
  237. package/dist/interaction_client/RedirectClient.mjs +1 -1
  238. package/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
  239. package/dist/interaction_client/SilentCacheClient.mjs +1 -1
  240. package/dist/interaction_client/SilentIframeClient.mjs +1 -1
  241. package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
  242. package/dist/interaction_client/StandardInteractionClient.mjs +1 -1
  243. package/dist/interaction_handler/InteractionHandler.mjs +1 -1
  244. package/dist/interaction_handler/SilentHandler.mjs +1 -1
  245. package/dist/naa/BridgeError.mjs +1 -1
  246. package/dist/naa/BridgeProxy.mjs +1 -1
  247. package/dist/naa/BridgeStatusCode.mjs +1 -1
  248. package/dist/naa/mapping/NestedAppAuthAdapter.mjs +1 -1
  249. package/dist/navigation/NavigationClient.mjs +1 -1
  250. package/dist/network/FetchClient.mjs +1 -1
  251. package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
  252. package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
  253. package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
  254. package/dist/operatingcontext/UnknownOperatingContext.mjs +1 -1
  255. package/dist/packageMetadata.d.ts +1 -1
  256. package/dist/packageMetadata.mjs +2 -2
  257. package/dist/protocol/Authorize.mjs +1 -1
  258. package/dist/request/RequestHelpers.mjs +1 -1
  259. package/dist/response/ResponseHandler.mjs +1 -1
  260. package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
  261. package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
  262. package/dist/utils/BrowserConstants.mjs +1 -1
  263. package/dist/utils/BrowserProtocolUtils.mjs +1 -1
  264. package/dist/utils/BrowserUtils.d.ts +2 -1
  265. package/dist/utils/BrowserUtils.d.ts.map +1 -1
  266. package/dist/utils/BrowserUtils.mjs +5 -4
  267. package/dist/utils/BrowserUtils.mjs.map +1 -1
  268. package/dist/utils/Helpers.mjs +1 -1
  269. package/dist/utils/MsalFrameStatsUtils.mjs +1 -1
  270. package/lib/custom-auth-path/msal-custom-auth.cjs +90 -79
  271. package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
  272. package/lib/custom-auth-path/types/custom_auth/CustomAuthConstants.d.ts +1 -1
  273. package/lib/custom-auth-path/types/custom_auth/configuration/CustomAuthConfiguration.d.ts +1 -0
  274. package/lib/custom-auth-path/types/custom_auth/configuration/CustomAuthConfiguration.d.ts.map +1 -1
  275. package/lib/custom-auth-path/types/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
  276. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/BaseApiClient.d.ts +2 -1
  277. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/BaseApiClient.d.ts.map +1 -1
  278. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts +1 -1
  279. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts.map +1 -1
  280. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.d.ts +1 -1
  281. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.d.ts.map +1 -1
  282. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts +1 -1
  283. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts.map +1 -1
  284. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/SignupApiClient.d.ts +1 -1
  285. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/SignupApiClient.d.ts.map +1 -1
  286. package/lib/custom-auth-path/types/custom_auth/core/utils/UrlUtils.d.ts +1 -1
  287. package/lib/custom-auth-path/types/custom_auth/core/utils/UrlUtils.d.ts.map +1 -1
  288. package/lib/custom-auth-path/types/packageMetadata.d.ts +1 -1
  289. package/lib/custom-auth-path/types/utils/BrowserUtils.d.ts +2 -1
  290. package/lib/custom-auth-path/types/utils/BrowserUtils.d.ts.map +1 -1
  291. package/lib/msal-browser.cjs +72 -70
  292. package/lib/msal-browser.cjs.map +1 -1
  293. package/lib/msal-browser.js +72 -70
  294. package/lib/msal-browser.js.map +1 -1
  295. package/lib/msal-browser.min.js +60 -60
  296. package/lib/types/custom_auth/CustomAuthConstants.d.ts +1 -1
  297. package/lib/types/custom_auth/configuration/CustomAuthConfiguration.d.ts +1 -0
  298. package/lib/types/custom_auth/configuration/CustomAuthConfiguration.d.ts.map +1 -1
  299. package/lib/types/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
  300. package/lib/types/custom_auth/core/network_client/custom_auth_api/BaseApiClient.d.ts +2 -1
  301. package/lib/types/custom_auth/core/network_client/custom_auth_api/BaseApiClient.d.ts.map +1 -1
  302. package/lib/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts +1 -1
  303. package/lib/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts.map +1 -1
  304. package/lib/types/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.d.ts +1 -1
  305. package/lib/types/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.d.ts.map +1 -1
  306. package/lib/types/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts +1 -1
  307. package/lib/types/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts.map +1 -1
  308. package/lib/types/custom_auth/core/network_client/custom_auth_api/SignupApiClient.d.ts +1 -1
  309. package/lib/types/custom_auth/core/network_client/custom_auth_api/SignupApiClient.d.ts.map +1 -1
  310. package/lib/types/custom_auth/core/utils/UrlUtils.d.ts +1 -1
  311. package/lib/types/custom_auth/core/utils/UrlUtils.d.ts.map +1 -1
  312. package/lib/types/packageMetadata.d.ts +1 -1
  313. package/lib/types/utils/BrowserUtils.d.ts +2 -1
  314. package/lib/types/utils/BrowserUtils.d.ts.map +1 -1
  315. package/package.json +1 -1
  316. package/src/custom_auth/configuration/CustomAuthConfiguration.ts +1 -0
  317. package/src/custom_auth/controller/CustomAuthStandardController.ts +2 -1
  318. package/src/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.ts +1 -1
  319. package/src/custom_auth/core/network_client/custom_auth_api/BaseApiClient.ts +7 -2
  320. package/src/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.ts +8 -4
  321. package/src/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.ts +8 -2
  322. package/src/custom_auth/core/network_client/custom_auth_api/SignInApiClient.ts +8 -2
  323. package/src/custom_auth/core/network_client/custom_auth_api/SignupApiClient.ts +8 -2
  324. package/src/custom_auth/core/utils/UrlUtils.ts +15 -1
  325. package/src/packageMetadata.ts +1 -1
  326. package/src/utils/BrowserUtils.ts +8 -1
@@ -17,7 +17,7 @@ export declare const HttpHeaderKeys: {
17
17
  };
18
18
  export declare const DefaultPackageInfo: {
19
19
  readonly SKU: "msal.browser";
20
- readonly VERSION: "4.21.1";
20
+ readonly VERSION: "4.22.1";
21
21
  readonly OS: "";
22
22
  readonly CPU: "";
23
23
  };
@@ -2,6 +2,7 @@ import { BrowserConfiguration, Configuration } from "../../config/Configuration.
2
2
  export type CustomAuthOptions = {
3
3
  challengeTypes?: Array<string>;
4
4
  authApiProxyUrl: string;
5
+ customAuthApiQueryParams?: Record<string, string>;
5
6
  capabilities?: Array<string>;
6
7
  };
7
8
  export type CustomAuthConfiguration = Configuration & {
@@ -1 +1 @@
1
- {"version":3,"file":"CustomAuthConfiguration.d.ts","sourceRoot":"","sources":["../../../../src/custom_auth/configuration/CustomAuthConfiguration.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,oBAAoB,EACpB,aAAa,EAChB,MAAM,+BAA+B,CAAC;AAEvC,MAAM,MAAM,iBAAiB,GAAG;IAC5B,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC/B,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,aAAa,GAAG;IAClD,UAAU,EAAE,iBAAiB,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG,oBAAoB,GAAG;IAChE,UAAU,EAAE,iBAAiB,CAAC;CACjC,CAAC"}
1
+ {"version":3,"file":"CustomAuthConfiguration.d.ts","sourceRoot":"","sources":["../../../../src/custom_auth/configuration/CustomAuthConfiguration.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,oBAAoB,EACpB,aAAa,EAChB,MAAM,+BAA+B,CAAC;AAEvC,MAAM,MAAM,iBAAiB,GAAG;IAC5B,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC/B,eAAe,EAAE,MAAM,CAAC;IACxB,wBAAwB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClD,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,aAAa,GAAG;IAClD,UAAU,EAAE,iBAAiB,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG,oBAAoB,GAAG;IAChE,UAAU,EAAE,iBAAiB,CAAC;CACjC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"CustomAuthStandardController.d.ts","sourceRoot":"","sources":["../../../../src/custom_auth/controller/CustomAuthStandardController.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAM3E,OAAO,EACH,sBAAsB,EACtB,YAAY,EACZ,YAAY,EACZ,mBAAmB,EAEtB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,0BAA0B,EAAE,MAAM,oDAAoD,CAAC;AAChG,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAGnF,OAAO,EAAE,wBAAwB,EAAE,MAAM,gEAAgE,CAAC;AAa1G,OAAO,EAAE,oBAAoB,EAAE,MAAM,gEAAgE,CAAC;AAetG,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAK7E,qBAAa,4BACT,SAAQ,kBACR,YAAW,6BAA6B;IAExC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAe;IAC5C,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAe;IAC5C,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAsB;IAC1D,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA8B;IAC1D,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAiC;IAClE,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAsB;gBAQ5C,gBAAgB,EAAE,0BAA0B,EAC5C,mBAAmB,CAAC,EAAE,oBAAoB;IA0D9C,iBAAiB,CACb,sBAAsB,CAAC,EAAE,sBAAsB,GAChD,gBAAgB;IAqCb,MAAM,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IAiKzD,MAAM,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IA8GzD,aAAa,CACf,mBAAmB,EAAE,mBAAmB,GACzC,OAAO,CAAC,wBAAwB,CAAC;IAoDpC,OAAO,CAAC,gBAAgB;IAQxB,OAAO,CAAC,qBAAqB;CAWhC"}
1
+ {"version":3,"file":"CustomAuthStandardController.d.ts","sourceRoot":"","sources":["../../../../src/custom_auth/controller/CustomAuthStandardController.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAM3E,OAAO,EACH,sBAAsB,EACtB,YAAY,EACZ,YAAY,EACZ,mBAAmB,EAEtB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,0BAA0B,EAAE,MAAM,oDAAoD,CAAC;AAChG,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAGnF,OAAO,EAAE,wBAAwB,EAAE,MAAM,gEAAgE,CAAC;AAa1G,OAAO,EAAE,oBAAoB,EAAE,MAAM,gEAAgE,CAAC;AAetG,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAK7E,qBAAa,4BACT,SAAQ,kBACR,YAAW,6BAA6B;IAExC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAe;IAC5C,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAe;IAC5C,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAsB;IAC1D,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA8B;IAC1D,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAiC;IAClE,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAsB;gBAQ5C,gBAAgB,EAAE,0BAA0B,EAC5C,mBAAmB,CAAC,EAAE,oBAAoB;IA2D9C,iBAAiB,CACb,sBAAsB,CAAC,EAAE,sBAAsB,GAChD,gBAAgB;IAqCb,MAAM,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IAiKzD,MAAM,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IA8GzD,aAAa,CACf,mBAAmB,EAAE,mBAAmB,GACzC,OAAO,CAAC,wBAAwB,CAAC;IAoDpC,OAAO,CAAC,gBAAgB;IAQxB,OAAO,CAAC,qBAAqB;CAWhC"}
@@ -3,8 +3,9 @@ import { ServerTelemetryManager } from "@azure/msal-common/browser";
3
3
  export declare abstract class BaseApiClient {
4
4
  private readonly clientId;
5
5
  private httpClient;
6
+ private customAuthApiQueryParams?;
6
7
  private readonly baseRequestUrl;
7
- constructor(baseUrl: string, clientId: string, httpClient: IHttpClient);
8
+ constructor(baseUrl: string, clientId: string, httpClient: IHttpClient, customAuthApiQueryParams?: Record<string, string> | undefined);
8
9
  protected request<T>(endpoint: string, data: Record<string, string | boolean>, telemetryManager: ServerTelemetryManager, correlationId: string): Promise<T>;
9
10
  protected ensureContinuationTokenIsValid(continuationToken: string | undefined, correlationId: string): void;
10
11
  private readResponseCorrelationId;
@@ -1 +1 @@
1
- {"version":3,"file":"BaseApiClient.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/network_client/custom_auth_api/BaseApiClient.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAO5D,OAAO,EAEH,sBAAsB,EACzB,MAAM,4BAA4B,CAAC;AAGpC,8BAAsB,aAAa;IAK3B,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,UAAU;IALtB,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAM;gBAGjC,OAAO,EAAE,MAAM,EACE,QAAQ,EAAE,MAAM,EACzB,UAAU,EAAE,WAAW;cAOnB,OAAO,CAAC,CAAC,EACrB,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,EACtC,gBAAgB,EAAE,sBAAsB,EACxC,aAAa,EAAE,MAAM,GACtB,OAAO,CAAC,CAAC,CAAC;IAuBb,SAAS,CAAC,8BAA8B,CACpC,iBAAiB,EAAE,MAAM,GAAG,SAAS,EACrC,aAAa,EAAE,MAAM,GACtB,IAAI;IAUP,OAAO,CAAC,yBAAyB;IAUjC,OAAO,CAAC,gBAAgB;YAkBV,iBAAiB;CAiElC"}
1
+ {"version":3,"file":"BaseApiClient.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/network_client/custom_auth_api/BaseApiClient.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAO5D,OAAO,EAEH,sBAAsB,EACzB,MAAM,4BAA4B,CAAC;AAGpC,8BAAsB,aAAa;IAK3B,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,UAAU;IAClB,OAAO,CAAC,wBAAwB,CAAC;IANrC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAM;gBAGjC,OAAO,EAAE,MAAM,EACE,QAAQ,EAAE,MAAM,EACzB,UAAU,EAAE,WAAW,EACvB,wBAAwB,CAAC,oCAAwB;cAO7C,OAAO,CAAC,CAAC,EACrB,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,EACtC,gBAAgB,EAAE,sBAAsB,EACxC,aAAa,EAAE,MAAM,GACtB,OAAO,CAAC,CAAC,CAAC;IA2Bb,SAAS,CAAC,8BAA8B,CACpC,iBAAiB,EAAE,MAAM,GAAG,SAAS,EACrC,aAAa,EAAE,MAAM,GACtB,IAAI;IAUP,OAAO,CAAC,yBAAyB;IAUjC,OAAO,CAAC,gBAAgB;YAkBV,iBAAiB;CAiElC"}
@@ -7,6 +7,6 @@ export declare class CustomAuthApiClient implements ICustomAuthApiClient {
7
7
  signInApi: SignInApiClient;
8
8
  signUpApi: SignupApiClient;
9
9
  resetPasswordApi: ResetPasswordApiClient;
10
- constructor(customAuthApiBaseUrl: string, clientId: string, httpClient: IHttpClient, capabilities?: string);
10
+ constructor(customAuthApiBaseUrl: string, clientId: string, httpClient: IHttpClient, capabilities?: string, customAuthApiQueryParams?: Record<string, string>);
11
11
  }
12
12
  //# sourceMappingURL=CustomAuthApiClient.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CustomAuthApiClient.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAE5D,qBAAa,mBAAoB,YAAW,oBAAoB;IAC5D,SAAS,EAAE,eAAe,CAAC;IAC3B,SAAS,EAAE,eAAe,CAAC;IAC3B,gBAAgB,EAAE,sBAAsB,CAAC;gBAGrC,oBAAoB,EAAE,MAAM,EAC5B,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,WAAW,EACvB,YAAY,CAAC,EAAE,MAAM;CAqB5B"}
1
+ {"version":3,"file":"CustomAuthApiClient.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAE5D,qBAAa,mBAAoB,YAAW,oBAAoB;IAC5D,SAAS,EAAE,eAAe,CAAC;IAC3B,SAAS,EAAE,eAAe,CAAC;IAC3B,gBAAgB,EAAE,sBAAsB,CAAC;gBAGrC,oBAAoB,EAAE,MAAM,EAC5B,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,WAAW,EACvB,YAAY,CAAC,EAAE,MAAM,EACrB,wBAAwB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAwBxD"}
@@ -4,7 +4,7 @@ import { ResetPasswordChallengeRequest, ResetPasswordContinueRequest, ResetPassw
4
4
  import { ResetPasswordChallengeResponse, ResetPasswordContinueResponse, ResetPasswordPollCompletionResponse, ResetPasswordStartResponse, ResetPasswordSubmitResponse } from "./types/ApiResponseTypes.js";
5
5
  export declare class ResetPasswordApiClient extends BaseApiClient {
6
6
  private readonly capabilities?;
7
- constructor(customAuthApiBaseUrl: string, clientId: string, httpClient: IHttpClient, capabilities?: string);
7
+ constructor(customAuthApiBaseUrl: string, clientId: string, httpClient: IHttpClient, capabilities?: string, customAuthApiQueryParams?: Record<string, string>);
8
8
  /**
9
9
  * Start the password reset flow
10
10
  */
@@ -1 +1 @@
1
- {"version":3,"file":"ResetPasswordApiClient.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAG5D,OAAO,EACH,6BAA6B,EAC7B,4BAA4B,EAC5B,kCAAkC,EAClC,yBAAyB,EACzB,0BAA0B,EAC7B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACH,8BAA8B,EAC9B,6BAA6B,EAC7B,mCAAmC,EACnC,0BAA0B,EAC1B,2BAA2B,EAC9B,MAAM,6BAA6B,CAAC;AAErC,qBAAa,sBAAuB,SAAQ,aAAa;IACrD,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAS;gBAGnC,oBAAoB,EAAE,MAAM,EAC5B,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,WAAW,EACvB,YAAY,CAAC,EAAE,MAAM;IAMzB;;OAEG;IACG,KAAK,CACP,MAAM,EAAE,yBAAyB,GAClC,OAAO,CAAC,0BAA0B,CAAC;IAsBtC;;;OAGG;IACG,gBAAgB,CAClB,MAAM,EAAE,6BAA6B,GACtC,OAAO,CAAC,8BAA8B,CAAC;IAmB1C;;;OAGG;IACG,gBAAgB,CAClB,MAAM,EAAE,4BAA4B,GACrC,OAAO,CAAC,6BAA6B,CAAC;IAoBzC;;;OAGG;IACG,iBAAiB,CACnB,MAAM,EAAE,0BAA0B,GACnC,OAAO,CAAC,2BAA2B,CAAC;IAuBvC;;;OAGG;IACG,cAAc,CAChB,MAAM,EAAE,kCAAkC,GAC3C,OAAO,CAAC,mCAAmC,CAAC;IAe/C,SAAS,CAAC,uBAAuB,CAC7B,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,MAAM,GACtB,IAAI;CAcV"}
1
+ {"version":3,"file":"ResetPasswordApiClient.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAG5D,OAAO,EACH,6BAA6B,EAC7B,4BAA4B,EAC5B,kCAAkC,EAClC,yBAAyB,EACzB,0BAA0B,EAC7B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACH,8BAA8B,EAC9B,6BAA6B,EAC7B,mCAAmC,EACnC,0BAA0B,EAC1B,2BAA2B,EAC9B,MAAM,6BAA6B,CAAC;AAErC,qBAAa,sBAAuB,SAAQ,aAAa;IACrD,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAS;gBAGnC,oBAAoB,EAAE,MAAM,EAC5B,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,WAAW,EACvB,YAAY,CAAC,EAAE,MAAM,EACrB,wBAAwB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAWrD;;OAEG;IACG,KAAK,CACP,MAAM,EAAE,yBAAyB,GAClC,OAAO,CAAC,0BAA0B,CAAC;IAsBtC;;;OAGG;IACG,gBAAgB,CAClB,MAAM,EAAE,6BAA6B,GACtC,OAAO,CAAC,8BAA8B,CAAC;IAmB1C;;;OAGG;IACG,gBAAgB,CAClB,MAAM,EAAE,4BAA4B,GACrC,OAAO,CAAC,6BAA6B,CAAC;IAoBzC;;;OAGG;IACG,iBAAiB,CACnB,MAAM,EAAE,0BAA0B,GACnC,OAAO,CAAC,2BAA2B,CAAC;IAuBvC;;;OAGG;IACG,cAAc,CAChB,MAAM,EAAE,kCAAkC,GAC3C,OAAO,CAAC,mCAAmC,CAAC;IAe/C,SAAS,CAAC,uBAAuB,CAC7B,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,MAAM,GACtB,IAAI;CAcV"}
@@ -4,7 +4,7 @@ import { SignInChallengeRequest, SignInContinuationTokenRequest, SignInInitiateR
4
4
  import { SignInChallengeResponse, SignInInitiateResponse, SignInTokenResponse } from "./types/ApiResponseTypes.js";
5
5
  export declare class SignInApiClient extends BaseApiClient {
6
6
  private readonly capabilities?;
7
- constructor(customAuthApiBaseUrl: string, clientId: string, httpClient: IHttpClient, capabilities?: string);
7
+ constructor(customAuthApiBaseUrl: string, clientId: string, httpClient: IHttpClient, capabilities?: string, customAuthApiQueryParams?: Record<string, string>);
8
8
  /**
9
9
  * Initiates the sign-in flow
10
10
  * @param username User's email
@@ -1 +1 @@
1
- {"version":3,"file":"SignInApiClient.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/network_client/custom_auth_api/SignInApiClient.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAG5D,OAAO,EACH,sBAAsB,EACtB,8BAA8B,EAC9B,qBAAqB,EACrB,qBAAqB,EACrB,0BAA0B,EAC7B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACH,uBAAuB,EACvB,sBAAsB,EACtB,mBAAmB,EACtB,MAAM,6BAA6B,CAAC;AAErC,qBAAa,eAAgB,SAAQ,aAAa;IAC9C,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAS;gBAGnC,oBAAoB,EAAE,MAAM,EAC5B,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,WAAW,EACvB,YAAY,CAAC,EAAE,MAAM;IAMzB;;;;OAIG;IACG,QAAQ,CACV,MAAM,EAAE,qBAAqB,GAC9B,OAAO,CAAC,sBAAsB,CAAC;IAsBlC;;;;OAIG;IACG,gBAAgB,CAClB,MAAM,EAAE,sBAAsB,GAC/B,OAAO,CAAC,uBAAuB,CAAC;IAmBnC;;;;;OAKG;IACG,yBAAyB,CAC3B,MAAM,EAAE,0BAA0B,GACnC,OAAO,CAAC,mBAAmB,CAAC;IAczB,oBAAoB,CACtB,MAAM,EAAE,qBAAqB,GAC9B,OAAO,CAAC,mBAAmB,CAAC;IAczB,iCAAiC,CACnC,MAAM,EAAE,8BAA8B,GACvC,OAAO,CAAC,mBAAmB,CAAC;YAejB,aAAa;IAoB3B,OAAO,CAAC,MAAM,CAAC,0BAA0B;CAoC5C"}
1
+ {"version":3,"file":"SignInApiClient.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/network_client/custom_auth_api/SignInApiClient.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAG5D,OAAO,EACH,sBAAsB,EACtB,8BAA8B,EAC9B,qBAAqB,EACrB,qBAAqB,EACrB,0BAA0B,EAC7B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACH,uBAAuB,EACvB,sBAAsB,EACtB,mBAAmB,EACtB,MAAM,6BAA6B,CAAC;AAErC,qBAAa,eAAgB,SAAQ,aAAa;IAC9C,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAS;gBAGnC,oBAAoB,EAAE,MAAM,EAC5B,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,WAAW,EACvB,YAAY,CAAC,EAAE,MAAM,EACrB,wBAAwB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAWrD;;;;OAIG;IACG,QAAQ,CACV,MAAM,EAAE,qBAAqB,GAC9B,OAAO,CAAC,sBAAsB,CAAC;IAsBlC;;;;OAIG;IACG,gBAAgB,CAClB,MAAM,EAAE,sBAAsB,GAC/B,OAAO,CAAC,uBAAuB,CAAC;IAmBnC;;;;;OAKG;IACG,yBAAyB,CAC3B,MAAM,EAAE,0BAA0B,GACnC,OAAO,CAAC,mBAAmB,CAAC;IAczB,oBAAoB,CACtB,MAAM,EAAE,qBAAqB,GAC9B,OAAO,CAAC,mBAAmB,CAAC;IAczB,iCAAiC,CACnC,MAAM,EAAE,8BAA8B,GACvC,OAAO,CAAC,mBAAmB,CAAC;YAejB,aAAa;IAoB3B,OAAO,CAAC,MAAM,CAAC,0BAA0B;CAoC5C"}
@@ -4,7 +4,7 @@ import { SignUpChallengeRequest, SignUpContinueWithAttributesRequest, SignUpCont
4
4
  import { SignUpChallengeResponse, SignUpContinueResponse, SignUpStartResponse } from "./types/ApiResponseTypes.js";
5
5
  export declare class SignupApiClient extends BaseApiClient {
6
6
  private readonly capabilities?;
7
- constructor(customAuthApiBaseUrl: string, clientId: string, httpClient: IHttpClient, capabilities?: string);
7
+ constructor(customAuthApiBaseUrl: string, clientId: string, httpClient: IHttpClient, capabilities?: string, customAuthApiQueryParams?: Record<string, string>);
8
8
  /**
9
9
  * Start the sign-up flow
10
10
  */
@@ -1 +1 @@
1
- {"version":3,"file":"SignupApiClient.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/network_client/custom_auth_api/SignupApiClient.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EACH,sBAAsB,EACtB,mCAAmC,EACnC,4BAA4B,EAC5B,iCAAiC,EACjC,kBAAkB,EACrB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACH,uBAAuB,EACvB,sBAAsB,EACtB,mBAAmB,EACtB,MAAM,6BAA6B,CAAC;AAErC,qBAAa,eAAgB,SAAQ,aAAa;IAC9C,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAS;gBAGnC,oBAAoB,EAAE,MAAM,EAC5B,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,WAAW,EACvB,YAAY,CAAC,EAAE,MAAM;IAMzB;;OAEG;IACG,KAAK,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC;IA0BrE;;OAEG;IACG,gBAAgB,CAClB,MAAM,EAAE,sBAAsB,GAC/B,OAAO,CAAC,uBAAuB,CAAC;IAmBnC;;OAEG;IACG,gBAAgB,CAClB,MAAM,EAAE,4BAA4B,GACrC,OAAO,CAAC,sBAAsB,CAAC;IAoB5B,oBAAoB,CACtB,MAAM,EAAE,iCAAiC,GAC1C,OAAO,CAAC,sBAAsB,CAAC;IAoB5B,sBAAsB,CACxB,MAAM,EAAE,mCAAmC,GAC5C,OAAO,CAAC,sBAAsB,CAAC;CAmBrC"}
1
+ {"version":3,"file":"SignupApiClient.d.ts","sourceRoot":"","sources":["../../../../../../src/custom_auth/core/network_client/custom_auth_api/SignupApiClient.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EACH,sBAAsB,EACtB,mCAAmC,EACnC,4BAA4B,EAC5B,iCAAiC,EACjC,kBAAkB,EACrB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACH,uBAAuB,EACvB,sBAAsB,EACtB,mBAAmB,EACtB,MAAM,6BAA6B,CAAC;AAErC,qBAAa,eAAgB,SAAQ,aAAa;IAC9C,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAS;gBAGnC,oBAAoB,EAAE,MAAM,EAC5B,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,WAAW,EACvB,YAAY,CAAC,EAAE,MAAM,EACrB,wBAAwB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAWrD;;OAEG;IACG,KAAK,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC;IA0BrE;;OAEG;IACG,gBAAgB,CAClB,MAAM,EAAE,sBAAsB,GAC/B,OAAO,CAAC,uBAAuB,CAAC;IAmBnC;;OAEG;IACG,gBAAgB,CAClB,MAAM,EAAE,4BAA4B,GACrC,OAAO,CAAC,sBAAsB,CAAC;IAoB5B,oBAAoB,CACtB,MAAM,EAAE,iCAAiC,GAC1C,OAAO,CAAC,sBAAsB,CAAC;IAoB5B,sBAAsB,CACxB,MAAM,EAAE,mCAAmC,GAC5C,OAAO,CAAC,sBAAsB,CAAC;CAmBrC"}
@@ -1,3 +1,3 @@
1
1
  export declare function parseUrl(url: string): URL;
2
- export declare function buildUrl(baseUrl: string, path: string): URL;
2
+ export declare function buildUrl(baseUrl: string, path: string, queryParams?: Record<string, string>): URL;
3
3
  //# sourceMappingURL=UrlUtils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UrlUtils.d.ts","sourceRoot":"","sources":["../../../../../src/custom_auth/core/utils/UrlUtils.ts"],"names":[],"mappings":"AAQA,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CASzC;AAED,wBAAgB,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,GAAG,CAK3D"}
1
+ {"version":3,"file":"UrlUtils.d.ts","sourceRoot":"","sources":["../../../../../src/custom_auth/core/utils/UrlUtils.ts"],"names":[],"mappings":"AAQA,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CASzC;AAED,wBAAgB,QAAQ,CACpB,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EACZ,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GACrC,GAAG,CAeL"}
@@ -1,3 +1,3 @@
1
1
  export declare const name = "@azure/msal-browser";
2
- export declare const version = "4.21.1";
2
+ export declare const version = "4.22.1";
3
3
  //# sourceMappingURL=packageMetadata.d.ts.map
@@ -1,4 +1,4 @@
1
- import { invoke, invokeAsync } from "@azure/msal-common/browser";
1
+ import { invoke, invokeAsync, RequestParameterBuilder } from "@azure/msal-common/browser";
2
2
  import type { BrowserConfiguration } from "../config/Configuration.js";
3
3
  /**
4
4
  * Clears hash from window url.
@@ -73,4 +73,5 @@ export declare function preconnect(authority: string): void;
73
73
  export declare function createGuid(): string;
74
74
  export { invoke };
75
75
  export { invokeAsync };
76
+ export declare const addClientCapabilitiesToClaims: typeof RequestParameterBuilder.addClientCapabilitiesToClaims;
76
77
  //# sourceMappingURL=BrowserUtils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BrowserUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/BrowserUtils.ts"],"names":[],"mappings":"AAKA,OAAO,EAAa,MAAM,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAW5E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAEvE;;GAEG;AACH,wBAAgB,SAAS,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI,CAWrD;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAI7C;AAED;;GAEG;AACH,wBAAgB,UAAU,IAAI,OAAO,CAEpC;AAED;;GAEG;AACH,wBAAgB,SAAS,IAAI,OAAO,CAQnC;AAID;;GAEG;AACH,wBAAgB,aAAa,IAAI,MAAM,CAItC;AAED;;GAEG;AACH,wBAAgB,WAAW,IAAI,MAAM,CAIpC;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,IAAI,IAAI,CAQjD;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,qBAAqB,EAAE,OAAO,GAAG,IAAI,CAK1E;AAED;;GAEG;AACH,wBAAgB,yBAAyB,IAAI,IAAI,CAKhD;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,IAAI,IAAI,CAMjD;AAED;;;GAGG;AACH,wBAAgB,6BAA6B,CAAC,WAAW,EAAE,OAAO,GAAG,IAAI,CAMxE;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,WAAW,EAAE,OAAO,GAAG,IAAI,CAYzD;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAClC,WAAW,EAAE,OAAO,EACpB,MAAM,EAAE,oBAAoB,GAC7B,IAAI,CAYN;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAalD;AAED;;;GAGG;AACH,wBAAgB,UAAU,IAAI,MAAM,CAEnC;AAED,OAAO,EAAE,MAAM,EAAE,CAAC;AAClB,OAAO,EAAE,WAAW,EAAE,CAAC"}
1
+ {"version":3,"file":"BrowserUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/BrowserUtils.ts"],"names":[],"mappings":"AAKA,OAAO,EAEH,MAAM,EACN,WAAW,EACX,uBAAuB,EAC1B,MAAM,4BAA4B,CAAC;AAWpC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAEvE;;GAEG;AACH,wBAAgB,SAAS,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI,CAWrD;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAI7C;AAED;;GAEG;AACH,wBAAgB,UAAU,IAAI,OAAO,CAEpC;AAED;;GAEG;AACH,wBAAgB,SAAS,IAAI,OAAO,CAQnC;AAID;;GAEG;AACH,wBAAgB,aAAa,IAAI,MAAM,CAItC;AAED;;GAEG;AACH,wBAAgB,WAAW,IAAI,MAAM,CAIpC;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,IAAI,IAAI,CAQjD;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,qBAAqB,EAAE,OAAO,GAAG,IAAI,CAK1E;AAED;;GAEG;AACH,wBAAgB,yBAAyB,IAAI,IAAI,CAKhD;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,IAAI,IAAI,CAMjD;AAED;;;GAGG;AACH,wBAAgB,6BAA6B,CAAC,WAAW,EAAE,OAAO,GAAG,IAAI,CAMxE;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,WAAW,EAAE,OAAO,GAAG,IAAI,CAYzD;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAClC,WAAW,EAAE,OAAO,EACpB,MAAM,EAAE,oBAAoB,GAC7B,IAAI,CAYN;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAalD;AAED;;;GAGG;AACH,wBAAgB,UAAU,IAAI,MAAM,CAEnC;AAED,OAAO,EAAE,MAAM,EAAE,CAAC;AAClB,OAAO,EAAE,WAAW,EAAE,CAAC;AACvB,eAAO,MAAM,6BAA6B,8DACe,CAAC"}
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "type": "git",
11
11
  "url": "https://github.com/AzureAD/microsoft-authentication-library-for-js.git"
12
12
  },
13
- "version": "4.21.1",
13
+ "version": "4.22.1",
14
14
  "description": "Microsoft Authentication Library for js",
15
15
  "keywords": [
16
16
  "implicit",
@@ -11,6 +11,7 @@ import {
11
11
  export type CustomAuthOptions = {
12
12
  challengeTypes?: Array<string>;
13
13
  authApiProxyUrl: string;
14
+ customAuthApiQueryParams?: Record<string, string>;
14
15
  capabilities?: Array<string>;
15
16
  };
16
17
 
@@ -113,7 +113,8 @@ export class CustomAuthStandardController
113
113
  this.authority.getCustomAuthApiDomain(),
114
114
  this.customAuthConfig.auth.clientId,
115
115
  new FetchHttpClient(this.logger),
116
- this.customAuthConfig.customAuth?.capabilities?.join(" ")
116
+ this.customAuthConfig.customAuth?.capabilities?.join(" "),
117
+ this.customAuthConfig.customAuth?.customAuthApiQueryParams
117
118
  ),
118
119
  this.authority
119
120
  );
@@ -64,7 +64,7 @@ export abstract class CustomAuthInteractionClientBase extends StandardInteractio
64
64
 
65
65
  protected getScopes(scopes: string[] | undefined): string[] {
66
66
  if (!!scopes && scopes.length > 0) {
67
- scopes;
67
+ return scopes;
68
68
  }
69
69
 
70
70
  return [
@@ -27,7 +27,8 @@ export abstract class BaseApiClient {
27
27
  constructor(
28
28
  baseUrl: string,
29
29
  private readonly clientId: string,
30
- private httpClient: IHttpClient
30
+ private httpClient: IHttpClient,
31
+ private customAuthApiQueryParams?: Record<string, string>
31
32
  ) {
32
33
  this.baseRequestUrl = parseUrl(
33
34
  !baseUrl.endsWith("/") ? `${baseUrl}/` : baseUrl
@@ -45,7 +46,11 @@ export abstract class BaseApiClient {
45
46
  ...data,
46
47
  });
47
48
  const headers = this.getCommonHeaders(correlationId, telemetryManager);
48
- const url = buildUrl(this.baseRequestUrl.href, endpoint);
49
+ const url = buildUrl(
50
+ this.baseRequestUrl.href,
51
+ endpoint,
52
+ this.customAuthApiQueryParams
53
+ );
49
54
 
50
55
  let response: Response;
51
56
 
@@ -18,25 +18,29 @@ export class CustomAuthApiClient implements ICustomAuthApiClient {
18
18
  customAuthApiBaseUrl: string,
19
19
  clientId: string,
20
20
  httpClient: IHttpClient,
21
- capabilities?: string
21
+ capabilities?: string,
22
+ customAuthApiQueryParams?: Record<string, string>
22
23
  ) {
23
24
  this.signInApi = new SignInApiClient(
24
25
  customAuthApiBaseUrl,
25
26
  clientId,
26
27
  httpClient,
27
- capabilities
28
+ capabilities,
29
+ customAuthApiQueryParams
28
30
  );
29
31
  this.signUpApi = new SignupApiClient(
30
32
  customAuthApiBaseUrl,
31
33
  clientId,
32
34
  httpClient,
33
- capabilities
35
+ capabilities,
36
+ customAuthApiQueryParams
34
37
  );
35
38
  this.resetPasswordApi = new ResetPasswordApiClient(
36
39
  customAuthApiBaseUrl,
37
40
  clientId,
38
41
  httpClient,
39
- capabilities
42
+ capabilities,
43
+ customAuthApiQueryParams
40
44
  );
41
45
  }
42
46
  }
@@ -34,9 +34,15 @@ export class ResetPasswordApiClient extends BaseApiClient {
34
34
  customAuthApiBaseUrl: string,
35
35
  clientId: string,
36
36
  httpClient: IHttpClient,
37
- capabilities?: string
37
+ capabilities?: string,
38
+ customAuthApiQueryParams?: Record<string, string>
38
39
  ) {
39
- super(customAuthApiBaseUrl, clientId, httpClient);
40
+ super(
41
+ customAuthApiBaseUrl,
42
+ clientId,
43
+ httpClient,
44
+ customAuthApiQueryParams
45
+ );
40
46
  this.capabilities = capabilities;
41
47
  }
42
48
 
@@ -30,9 +30,15 @@ export class SignInApiClient extends BaseApiClient {
30
30
  customAuthApiBaseUrl: string,
31
31
  clientId: string,
32
32
  httpClient: IHttpClient,
33
- capabilities?: string
33
+ capabilities?: string,
34
+ customAuthApiQueryParams?: Record<string, string>
34
35
  ) {
35
- super(customAuthApiBaseUrl, clientId, httpClient);
36
+ super(
37
+ customAuthApiBaseUrl,
38
+ clientId,
39
+ httpClient,
40
+ customAuthApiQueryParams
41
+ );
36
42
  this.capabilities = capabilities;
37
43
  }
38
44
 
@@ -27,9 +27,15 @@ export class SignupApiClient extends BaseApiClient {
27
27
  customAuthApiBaseUrl: string,
28
28
  clientId: string,
29
29
  httpClient: IHttpClient,
30
- capabilities?: string
30
+ capabilities?: string,
31
+ customAuthApiQueryParams?: Record<string, string>
31
32
  ) {
32
- super(customAuthApiBaseUrl, clientId, httpClient);
33
+ super(
34
+ customAuthApiBaseUrl,
35
+ clientId,
36
+ httpClient,
37
+ customAuthApiQueryParams
38
+ );
33
39
  this.capabilities = capabilities;
34
40
  }
35
41
 
@@ -17,9 +17,23 @@ export function parseUrl(url: string): URL {
17
17
  }
18
18
  }
19
19
 
20
- export function buildUrl(baseUrl: string, path: string): URL {
20
+ export function buildUrl(
21
+ baseUrl: string,
22
+ path: string,
23
+ queryParams?: Record<string, string>
24
+ ): URL {
21
25
  const newBaseUrl = !baseUrl.endsWith("/") ? `${baseUrl}/` : baseUrl;
22
26
  const newPath = path.startsWith("/") ? path.slice(1) : path;
23
27
  const url = new URL(newPath, newBaseUrl);
28
+
29
+ // Add query parameters if provided
30
+ if (queryParams) {
31
+ Object.entries(queryParams).forEach(([key, value]) => {
32
+ if (value !== undefined && value !== null) {
33
+ url.searchParams.set(key, String(value));
34
+ }
35
+ });
36
+ }
37
+
24
38
  return url;
25
39
  }
@@ -1,3 +1,3 @@
1
1
  /* eslint-disable header/header */
2
2
  export const name = "@azure/msal-browser";
3
- export const version = "4.21.1";
3
+ export const version = "4.22.1";
@@ -3,7 +3,12 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- import { UrlString, invoke, invokeAsync } from "@azure/msal-common/browser";
6
+ import {
7
+ UrlString,
8
+ invoke,
9
+ invokeAsync,
10
+ RequestParameterBuilder,
11
+ } from "@azure/msal-common/browser";
7
12
  import {
8
13
  createBrowserAuthError,
9
14
  BrowserAuthErrorCodes,
@@ -211,3 +216,5 @@ export function createGuid(): string {
211
216
 
212
217
  export { invoke };
213
218
  export { invokeAsync };
219
+ export const addClientCapabilitiesToClaims =
220
+ RequestParameterBuilder.addClientCapabilitiesToClaims;