@azure/msal-browser 5.30.0 → 5.31.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 (516) hide show
  1. package/README.md +4 -2
  2. package/dist/app/IPublicClientApplication.mjs +4 -1
  3. package/dist/app/IPublicClientApplication.mjs.map +1 -1
  4. package/dist/app/PublicClientApplication.mjs +14 -2
  5. package/dist/app/PublicClientApplication.mjs.map +1 -1
  6. package/dist/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
  7. package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs +10 -23
  8. package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs.map +1 -1
  9. package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
  10. package/dist/broker/nativeBroker/PlatformAuthProvider.mjs +2 -3
  11. package/dist/broker/nativeBroker/PlatformAuthProvider.mjs.map +1 -1
  12. package/dist/broker/nativeBroker/PlatformAuthRequest.mjs +1 -1
  13. package/dist/cache/AccountManager.mjs +1 -1
  14. package/dist/cache/AsyncMemoryStorage.mjs +1 -1
  15. package/dist/cache/BrowserCacheManager.mjs +39 -2
  16. package/dist/cache/BrowserCacheManager.mjs.map +1 -1
  17. package/dist/cache/CacheHelpers.mjs +1 -1
  18. package/dist/cache/CacheKeys.mjs +1 -1
  19. package/dist/cache/CookieStorage.mjs +1 -1
  20. package/dist/cache/DatabaseStorage.mjs +1 -1
  21. package/dist/cache/EncryptedData.mjs +1 -1
  22. package/dist/cache/LocalStorage.mjs +1 -1
  23. package/dist/cache/MemoryStorage.mjs +1 -1
  24. package/dist/cache/SessionStorage.mjs +1 -1
  25. package/dist/cache/TokenCache.mjs +1 -1
  26. package/dist/config/Configuration.mjs +1 -1
  27. package/dist/controllers/NestedAppAuthController.mjs +26 -5
  28. package/dist/controllers/NestedAppAuthController.mjs.map +1 -1
  29. package/dist/controllers/StandardController.mjs +44 -11
  30. package/dist/controllers/StandardController.mjs.map +1 -1
  31. package/dist/crypto/BrowserCrypto.mjs +5 -3
  32. package/dist/crypto/BrowserCrypto.mjs.map +1 -1
  33. package/dist/crypto/CryptoOps.mjs +1 -1
  34. package/dist/crypto/PkceGenerator.mjs +1 -1
  35. package/dist/crypto/SignedHttpRequest.mjs +1 -1
  36. package/dist/crypto/TokenBindingKeyManager.mjs +1 -1
  37. package/dist/custom_auth/CustomAuthConstants.mjs +1 -1
  38. package/dist/custom_auth/CustomAuthPublicClientApplication.mjs +1 -4
  39. package/dist/custom_auth/CustomAuthPublicClientApplication.mjs.map +1 -1
  40. package/dist/custom_auth/controller/CustomAuthStandardController.mjs +11 -4
  41. package/dist/custom_auth/controller/CustomAuthStandardController.mjs.map +1 -1
  42. package/dist/custom_auth/core/CustomAuthAuthority.mjs +3 -3
  43. package/dist/custom_auth/core/CustomAuthAuthority.mjs.map +1 -1
  44. package/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs +1 -1
  45. package/dist/custom_auth/core/auth_flow/AuthFlowResultBase.mjs +1 -1
  46. package/dist/custom_auth/core/auth_flow/AuthFlowState.mjs +1 -1
  47. package/dist/custom_auth/core/auth_flow/AuthFlowStateTypes.mjs +1 -1
  48. package/dist/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs +1 -1
  49. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs +1 -4
  50. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs.map +1 -1
  51. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs +1 -3
  52. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs.map +1 -1
  53. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.mjs +1 -1
  54. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.mjs +1 -1
  55. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs +1 -8
  56. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs.map +1 -1
  57. package/dist/custom_auth/core/auth_flow/mfa/error_type/MfaError.mjs +1 -1
  58. package/dist/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.mjs +1 -3
  59. package/dist/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.mjs.map +1 -1
  60. package/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs +1 -3
  61. package/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs.map +1 -1
  62. package/dist/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.mjs +1 -1
  63. package/dist/custom_auth/core/auth_flow/mfa/state/MfaFailedState.mjs +1 -1
  64. package/dist/custom_auth/core/auth_flow/mfa/state/MfaState.mjs +1 -7
  65. package/dist/custom_auth/core/auth_flow/mfa/state/MfaState.mjs.map +1 -1
  66. package/dist/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.mjs +1 -2
  67. package/dist/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.mjs.map +1 -1
  68. package/dist/custom_auth/core/auth_flow/v2/CustomAuthResultV2.mjs +1 -2
  69. package/dist/custom_auth/core/auth_flow/v2/CustomAuthResultV2.mjs.map +1 -1
  70. package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.mjs +1 -1
  71. package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.mjs +1 -2
  72. package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.mjs.map +1 -1
  73. package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.mjs +1 -2
  74. package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.mjs.map +1 -1
  75. package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.mjs +2 -5
  76. package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.mjs.map +1 -1
  77. package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.mjs +1 -2
  78. package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.mjs.map +1 -1
  79. package/dist/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.mjs +1 -1
  80. package/dist/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.mjs +1 -2
  81. package/dist/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.mjs.map +1 -1
  82. package/dist/custom_auth/core/auth_flow/v2/state/CompletedStateV2.mjs +1 -2
  83. package/dist/custom_auth/core/auth_flow/v2/state/CompletedStateV2.mjs.map +1 -1
  84. package/dist/custom_auth/core/auth_flow/v2/state/FailedStateV2.mjs +1 -2
  85. package/dist/custom_auth/core/auth_flow/v2/state/FailedStateV2.mjs.map +1 -1
  86. package/dist/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.mjs +1 -2
  87. package/dist/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.mjs.map +1 -1
  88. package/dist/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.mjs +2 -3
  89. package/dist/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.mjs.map +1 -1
  90. package/dist/custom_auth/core/error/CustomAuthApiError.mjs +1 -1
  91. package/dist/custom_auth/core/error/CustomAuthError.mjs +1 -1
  92. package/dist/custom_auth/core/error/HttpError.mjs +1 -1
  93. package/dist/custom_auth/core/error/HttpErrorCodes.mjs +1 -1
  94. package/dist/custom_auth/core/error/InvalidArgumentError.mjs +1 -1
  95. package/dist/custom_auth/core/error/InvalidConfigurationError.mjs +1 -1
  96. package/dist/custom_auth/core/error/InvalidConfigurationErrorCodes.mjs +1 -1
  97. package/dist/custom_auth/core/error/MethodNotImplementedError.mjs +1 -1
  98. package/dist/custom_auth/core/error/MsalCustomAuthError.mjs +1 -1
  99. package/dist/custom_auth/core/error/NoCachedAccountFoundError.mjs +1 -1
  100. package/dist/custom_auth/core/error/ParsedUrlError.mjs +1 -1
  101. package/dist/custom_auth/core/error/ParsedUrlErrorCodes.mjs +1 -1
  102. package/dist/custom_auth/core/error/UnexpectedError.mjs +1 -1
  103. package/dist/custom_auth/core/error/UnsupportedEnvironmentError.mjs +1 -1
  104. package/dist/custom_auth/core/error/UserAccountAttributeError.mjs +1 -1
  105. package/dist/custom_auth/core/error/UserAlreadySignedInError.mjs +1 -1
  106. package/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs +1 -1
  107. package/dist/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs +1 -1
  108. package/dist/custom_auth/core/interaction_client/jit/JitClient.mjs +1 -1
  109. package/dist/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs +1 -1
  110. package/dist/custom_auth/core/interaction_client/mfa/MfaClient.mjs +1 -1
  111. package/dist/custom_auth/core/interaction_client/mfa/result/MfaActionResult.mjs +1 -1
  112. package/dist/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.mjs +32 -27
  113. package/dist/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.mjs.map +1 -1
  114. package/dist/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.mjs +1 -1
  115. package/dist/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.mjs +6 -2
  116. package/dist/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.mjs.map +1 -1
  117. package/dist/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs +1 -1
  118. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs +1 -1
  119. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs +1 -1
  120. package/dist/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.mjs +1 -1
  121. package/dist/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs +1 -1
  122. package/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs +1 -1
  123. package/dist/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs +1 -1
  124. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs +1 -1
  125. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs +1 -1
  126. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.mjs +1 -1
  127. package/dist/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.mjs +7 -5
  128. package/dist/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.mjs.map +1 -1
  129. package/dist/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.mjs +12 -3
  130. package/dist/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.mjs.map +1 -1
  131. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.mjs +1 -1
  132. package/dist/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.mjs +9 -39
  133. package/dist/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.mjs.map +1 -1
  134. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.mjs +1 -1
  135. package/dist/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.mjs +1 -1
  136. package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.mjs +1 -1
  137. package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.mjs.map +1 -1
  138. package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.mjs +1 -1
  139. package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.mjs.map +1 -1
  140. package/dist/custom_auth/core/network_client/http_client/FetchHttpClient.mjs +1 -1
  141. package/dist/custom_auth/core/network_client/http_client/IHttpClient.mjs +1 -1
  142. package/dist/custom_auth/core/telemetry/FlowApiIdHelperV2.mjs +1 -1
  143. package/dist/custom_auth/core/telemetry/PublicApiId.mjs +1 -1
  144. package/dist/custom_auth/core/utils/ArgumentValidator.mjs +1 -1
  145. package/dist/custom_auth/core/utils/CustomHeaderUtils.mjs +1 -1
  146. package/dist/custom_auth/core/utils/UrlUtils.mjs +1 -1
  147. package/dist/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs +1 -1
  148. package/dist/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs +1 -1
  149. package/dist/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.mjs +1 -1
  150. package/dist/custom_auth/get_account/auth_flow/result/GetAccountResult.mjs +1 -1
  151. package/dist/custom_auth/get_account/auth_flow/result/SignOutResult.mjs +1 -1
  152. package/dist/custom_auth/get_account/auth_flow/state/GetAccessTokenState.mjs +1 -1
  153. package/dist/custom_auth/get_account/auth_flow/state/GetAccountState.mjs +1 -1
  154. package/dist/custom_auth/get_account/auth_flow/state/SignOutState.mjs +1 -1
  155. package/dist/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs +2 -1
  156. package/dist/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs.map +1 -1
  157. package/dist/custom_auth/index.mjs +1 -1
  158. package/dist/custom_auth/operating_context/CustomAuthOperatingContext.mjs +1 -1
  159. package/dist/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs +1 -1
  160. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs +1 -1
  161. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.mjs +1 -1
  162. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.mjs +1 -1
  163. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.mjs +1 -1
  164. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs +1 -1
  165. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.mjs +1 -1
  166. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.mjs +1 -1
  167. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs +1 -1
  168. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs +1 -1
  169. package/dist/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.mjs +1 -2
  170. package/dist/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.mjs.map +1 -1
  171. package/dist/custom_auth/reset_password/auth_flow/v2/state/ResetPasswordStateTransitionHandlerV2.mjs +1 -1
  172. package/dist/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs +1 -1
  173. package/dist/custom_auth/sign_in/auth_flow/SignInScenario.mjs +1 -1
  174. package/dist/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs +1 -1
  175. package/dist/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs +1 -1
  176. package/dist/custom_auth/sign_in/auth_flow/result/SignInResult.mjs +1 -3
  177. package/dist/custom_auth/sign_in/auth_flow/result/SignInResult.mjs.map +1 -1
  178. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +1 -3
  179. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs.map +1 -1
  180. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +1 -3
  181. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs.map +1 -1
  182. package/dist/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs +1 -1
  183. package/dist/custom_auth/sign_in/auth_flow/state/SignInCompletedState.mjs +1 -1
  184. package/dist/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs +1 -1
  185. package/dist/custom_auth/sign_in/auth_flow/state/SignInFailedState.mjs +1 -1
  186. package/dist/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs +1 -1
  187. package/dist/custom_auth/sign_in/auth_flow/state/SignInState.mjs +1 -1
  188. package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.mjs +1 -2
  189. package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.mjs.map +1 -1
  190. package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInStateTransitionHandlerV2.mjs +1 -1
  191. package/dist/custom_auth/sign_in/interaction_client/SignInClient.mjs +1 -1
  192. package/dist/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs +1 -1
  193. package/dist/custom_auth/sign_up/auth_flow/error_type/SignUpError.mjs +1 -1
  194. package/dist/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs +1 -1
  195. package/dist/custom_auth/sign_up/auth_flow/result/SignUpResult.mjs +1 -1
  196. package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.mjs +1 -1
  197. package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.mjs +1 -1
  198. package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.mjs +1 -1
  199. package/dist/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs +1 -1
  200. package/dist/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs +1 -1
  201. package/dist/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.mjs +1 -1
  202. package/dist/custom_auth/sign_up/auth_flow/state/SignUpFailedState.mjs +1 -1
  203. package/dist/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs +1 -1
  204. package/dist/custom_auth/sign_up/auth_flow/state/SignUpState.mjs +1 -1
  205. package/dist/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.mjs +1 -2
  206. package/dist/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.mjs.map +1 -1
  207. package/dist/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountCodeRequiredStateV2.mjs +1 -1
  208. package/dist/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountPasswordRequiredStateV2.mjs +1 -1
  209. package/dist/custom_auth/sign_up/auth_flow/v2/state/ExistingAccountStateTransitionHelperV2.mjs +1 -1
  210. package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.mjs +1 -1
  211. package/dist/custom_auth/sign_up/interaction_client/SignUpClient.mjs +1 -1
  212. package/dist/custom_auth/sign_up/interaction_client/result/SignUpActionResult.mjs +1 -1
  213. package/dist/encode/Base64Decode.mjs +1 -1
  214. package/dist/encode/Base64Encode.mjs +1 -1
  215. package/dist/error/BrowserAuthError.mjs +1 -1
  216. package/dist/error/BrowserAuthErrorCodes.mjs +1 -1
  217. package/dist/error/BrowserConfigurationAuthError.mjs +1 -1
  218. package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
  219. package/dist/error/NativeAuthError.mjs +1 -1
  220. package/dist/error/NativeAuthErrorCodes.mjs +1 -1
  221. package/dist/error/NestedAppAuthError.mjs +1 -1
  222. package/dist/event/EventHandler.mjs +1 -1
  223. package/dist/event/EventMessage.mjs +1 -1
  224. package/dist/event/EventType.mjs +1 -1
  225. package/dist/index.mjs +1 -1
  226. package/dist/interaction_client/BaseInteractionClient.mjs +4 -2
  227. package/dist/interaction_client/BaseInteractionClient.mjs.map +1 -1
  228. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
  229. package/dist/interaction_client/PlatformAuthInteractionClient.mjs +18 -5
  230. package/dist/interaction_client/PlatformAuthInteractionClient.mjs.map +1 -1
  231. package/dist/interaction_client/PopupClient.mjs +1 -1
  232. package/dist/interaction_client/RedirectClient.mjs +1 -1
  233. package/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
  234. package/dist/interaction_client/SilentCacheClient.mjs +1 -1
  235. package/dist/interaction_client/SilentIframeClient.mjs +1 -1
  236. package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
  237. package/dist/interaction_client/StandardInteractionClient.mjs +2 -1
  238. package/dist/interaction_client/StandardInteractionClient.mjs.map +1 -1
  239. package/dist/interaction_handler/InteractionHandler.mjs +1 -1
  240. package/dist/interaction_handler/SilentHandler.mjs +1 -1
  241. package/dist/log-strings-mapping.json +695 -695
  242. package/dist/naa/BridgeError.mjs +1 -1
  243. package/dist/naa/BridgeProxy.mjs +1 -1
  244. package/dist/naa/BridgeStatusCode.mjs +1 -1
  245. package/dist/naa/mapping/NestedAppAuthAdapter.mjs +1 -1
  246. package/dist/navigation/NavigationClient.mjs +1 -1
  247. package/dist/network/FetchClient.mjs +1 -1
  248. package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
  249. package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
  250. package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
  251. package/dist/packageMetadata.mjs +2 -2
  252. package/dist/popup_relay/constants.mjs +1 -1
  253. package/dist/popup_relay/index.mjs +1 -1
  254. package/dist/popup_relay/relayClient.mjs +1 -1
  255. package/dist/protocol/Authorize.mjs +2 -1
  256. package/dist/protocol/Authorize.mjs.map +1 -1
  257. package/dist/redirect_bridge/index.mjs +1 -1
  258. package/dist/request/RequestHelpers.mjs +2 -1
  259. package/dist/request/RequestHelpers.mjs.map +1 -1
  260. package/dist/request/SilentRequestHelpers.mjs +6 -4
  261. package/dist/request/SilentRequestHelpers.mjs.map +1 -1
  262. package/dist/response/ResponseHandler.mjs +1 -1
  263. package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
  264. package/dist/telemetry/BrowserPerformanceEvents.mjs +7 -2
  265. package/dist/telemetry/BrowserPerformanceEvents.mjs.map +1 -1
  266. package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
  267. package/dist/telemetry/BrowserRootPerformanceEvents.mjs +1 -1
  268. package/dist/utils/BrowserConstants.mjs +1 -1
  269. package/dist/utils/BrowserDetection.mjs +1 -1
  270. package/dist/utils/BrowserProtocolUtils.mjs +1 -1
  271. package/dist/utils/BrowserUtils.mjs +1 -1
  272. package/dist/utils/Helpers.mjs +1 -1
  273. package/dist/utils/IframeMonitor.mjs +1 -1
  274. package/dist/utils/MsalFrameStatsUtils.mjs +1 -1
  275. package/dist/utils/PopupMonitor.mjs +1 -1
  276. package/dist/utils/PopupOriginCheck.mjs +1 -1
  277. package/dist/webBrokerBridge/PendingRequestRegistry.mjs +1 -1
  278. package/dist/webBrokerBridge/PerfEventNames.mjs +1 -1
  279. package/dist/webBrokerBridge/WebBrokerBridgeError.mjs +1 -1
  280. package/dist/webBrokerBridge/WebBrokerBridgeErrorMap.mjs +1 -1
  281. package/dist/webBrokerBridge/adapter/CrossVersionRequestAdapter.mjs +1 -1
  282. package/dist/webBrokerBridge/index.mjs +1 -1
  283. package/lib/custom-auth-path/log-strings-mapping.json +2 -2
  284. package/lib/custom-auth-path/msal-custom-auth.cjs +386 -252
  285. package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
  286. package/lib/custom-auth-path/msal-custom-auth.js +386 -252
  287. package/lib/custom-auth-path/msal-custom-auth.js.map +1 -1
  288. package/lib/log-strings-mapping.json +2 -2
  289. package/lib/msal-browser.cjs +411 -153
  290. package/lib/msal-browser.cjs.map +1 -1
  291. package/lib/msal-browser.js +411 -153
  292. package/lib/msal-browser.js.map +1 -1
  293. package/lib/msal-browser.min.js +2 -2
  294. package/lib/popup-relay/msal-popup-relay.cjs +2 -2
  295. package/lib/popup-relay/msal-popup-relay.cjs.map +1 -1
  296. package/lib/popup-relay/msal-popup-relay.js +2 -2
  297. package/lib/popup-relay/msal-popup-relay.js.map +1 -1
  298. package/lib/popup-relay/msal-popup-relay.min.js +1 -1
  299. package/lib/redirect-bridge/msal-redirect-bridge.cjs +10 -10
  300. package/lib/redirect-bridge/msal-redirect-bridge.cjs.map +1 -1
  301. package/lib/redirect-bridge/msal-redirect-bridge.js +10 -10
  302. package/lib/redirect-bridge/msal-redirect-bridge.js.map +1 -1
  303. package/lib/redirect-bridge/msal-redirect-bridge.min.js +1 -1
  304. package/lib/web-broker-bridge/msal-web-broker-bridge.cjs +1 -1
  305. package/package.json +2 -2
  306. package/src/app/IPublicClientApplication.ts +16 -0
  307. package/src/app/PublicClientApplication.ts +22 -0
  308. package/src/broker/nativeBroker/PlatformAuthDOMHandler.ts +11 -44
  309. package/src/broker/nativeBroker/PlatformAuthProvider.ts +1 -2
  310. package/src/broker/nativeBroker/PlatformAuthResponse.ts +2 -6
  311. package/src/cache/BrowserCacheManager.ts +65 -1
  312. package/src/controllers/NestedAppAuthController.ts +35 -2
  313. package/src/controllers/StandardController.ts +76 -12
  314. package/src/controllers/UnknownOperatingContextController.ts +10 -0
  315. package/src/crypto/BrowserCrypto.ts +4 -2
  316. package/src/custom_auth/CustomAuthActionInputs.ts +0 -9
  317. package/src/custom_auth/CustomAuthPublicClientApplication.ts +0 -3
  318. package/src/custom_auth/ICustomAuthPublicClientApplicationV2.ts +0 -3
  319. package/src/custom_auth/controller/CustomAuthStandardController.ts +15 -2
  320. package/src/custom_auth/core/CustomAuthAuthority.ts +2 -1
  321. package/src/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.ts +0 -3
  322. package/src/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.ts +0 -2
  323. package/src/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.ts +0 -7
  324. package/src/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.ts +0 -2
  325. package/src/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.ts +0 -2
  326. package/src/custom_auth/core/auth_flow/mfa/state/MfaState.ts +0 -6
  327. package/src/custom_auth/core/auth_flow/v2/AuthenticationMethodRegistrationV2.ts +0 -1
  328. package/src/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.ts +0 -1
  329. package/src/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.ts +0 -4
  330. package/src/custom_auth/core/auth_flow/v2/CustomAuthResultV2.ts +0 -1
  331. package/src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.ts +0 -1
  332. package/src/custom_auth/core/auth_flow/v2/result/AuthMethodRegistrationChallengeResultV2.ts +0 -2
  333. package/src/custom_auth/core/auth_flow/v2/result/AuthMethodVerificationSubmitChallengeResultV2.ts +0 -2
  334. package/src/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.ts +0 -2
  335. package/src/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.ts +0 -2
  336. package/src/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.ts +0 -2
  337. package/src/custom_auth/core/auth_flow/v2/result/SubmitPasswordResultV2.ts +0 -2
  338. package/src/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.ts +0 -2
  339. package/src/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.ts +0 -1
  340. package/src/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.ts +0 -3
  341. package/src/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.ts +0 -1
  342. package/src/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.ts +0 -1
  343. package/src/custom_auth/core/auth_flow/v2/state/CompletedStateV2.ts +0 -1
  344. package/src/custom_auth/core/auth_flow/v2/state/FailedStateV2.ts +0 -1
  345. package/src/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.ts +0 -1
  346. package/src/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.ts +8 -6
  347. package/src/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.ts +1 -0
  348. package/src/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.ts +43 -29
  349. package/src/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.ts +21 -2
  350. package/src/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.ts +12 -8
  351. package/src/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.ts +35 -4
  352. package/src/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.ts +10 -47
  353. package/src/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.ts +1 -0
  354. package/src/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.ts +9 -0
  355. package/src/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.ts +5 -5
  356. package/src/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.ts +2 -5
  357. package/src/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.ts +2 -4
  358. package/src/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.ts +1 -0
  359. package/src/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.ts +0 -2
  360. package/src/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.ts +0 -1
  361. package/src/custom_auth/sign_in/auth_flow/result/SignInResult.ts +0 -2
  362. package/src/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.ts +0 -2
  363. package/src/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.ts +0 -2
  364. package/src/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.ts +0 -2
  365. package/src/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.ts +0 -2
  366. package/src/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.ts +0 -1
  367. package/src/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.ts +0 -2
  368. package/src/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.ts +0 -2
  369. package/src/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.ts +0 -1
  370. package/src/interaction_client/BaseInteractionClient.ts +6 -1
  371. package/src/interaction_client/PlatformAuthInteractionClient.ts +28 -8
  372. package/src/interaction_client/StandardInteractionClient.ts +1 -0
  373. package/src/packageMetadata.ts +1 -1
  374. package/src/protocol/Authorize.ts +5 -0
  375. package/src/request/EndSessionPopupRequest.ts +3 -0
  376. package/src/request/RedirectRequest.ts +3 -0
  377. package/src/request/RequestHelpers.ts +5 -0
  378. package/src/request/SilentRequestHelpers.ts +9 -4
  379. package/src/telemetry/BrowserPerformanceEvents.ts +7 -0
  380. package/types/app/IPublicClientApplication.d.ts +8 -0
  381. package/types/app/IPublicClientApplication.d.ts.map +1 -1
  382. package/types/app/PublicClientApplication.d.ts +6 -1
  383. package/types/app/PublicClientApplication.d.ts.map +1 -1
  384. package/types/broker/nativeBroker/PlatformAuthDOMHandler.d.ts +0 -1
  385. package/types/broker/nativeBroker/PlatformAuthDOMHandler.d.ts.map +1 -1
  386. package/types/broker/nativeBroker/PlatformAuthProvider.d.ts.map +1 -1
  387. package/types/broker/nativeBroker/PlatformAuthResponse.d.ts +2 -6
  388. package/types/broker/nativeBroker/PlatformAuthResponse.d.ts.map +1 -1
  389. package/types/cache/BrowserCacheManager.d.ts +20 -2
  390. package/types/cache/BrowserCacheManager.d.ts.map +1 -1
  391. package/types/controllers/NestedAppAuthController.d.ts +5 -0
  392. package/types/controllers/NestedAppAuthController.d.ts.map +1 -1
  393. package/types/controllers/StandardController.d.ts +4 -0
  394. package/types/controllers/StandardController.d.ts.map +1 -1
  395. package/types/controllers/UnknownOperatingContextController.d.ts +5 -0
  396. package/types/controllers/UnknownOperatingContextController.d.ts.map +1 -1
  397. package/types/crypto/BrowserCrypto.d.ts.map +1 -1
  398. package/types/custom_auth/CustomAuthActionInputs.d.ts +0 -9
  399. package/types/custom_auth/CustomAuthActionInputs.d.ts.map +1 -1
  400. package/types/custom_auth/CustomAuthConstants.d.ts +1 -1
  401. package/types/custom_auth/CustomAuthPublicClientApplication.d.ts +0 -3
  402. package/types/custom_auth/CustomAuthPublicClientApplication.d.ts.map +1 -1
  403. package/types/custom_auth/ICustomAuthPublicClientApplicationV2.d.ts +0 -3
  404. package/types/custom_auth/ICustomAuthPublicClientApplicationV2.d.ts.map +1 -1
  405. package/types/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
  406. package/types/custom_auth/core/CustomAuthAuthority.d.ts.map +1 -1
  407. package/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts +0 -3
  408. package/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts.map +1 -1
  409. package/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts +0 -2
  410. package/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts.map +1 -1
  411. package/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts +0 -7
  412. package/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts.map +1 -1
  413. package/types/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts +0 -2
  414. package/types/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts.map +1 -1
  415. package/types/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts +0 -2
  416. package/types/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts.map +1 -1
  417. package/types/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts +0 -6
  418. package/types/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts.map +1 -1
  419. package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodRegistrationV2.d.ts +0 -1
  420. package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodRegistrationV2.d.ts.map +1 -1
  421. package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.d.ts +0 -1
  422. package/types/custom_auth/core/auth_flow/v2/AuthenticationMethodV2.d.ts.map +1 -1
  423. package/types/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.d.ts +0 -4
  424. package/types/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.d.ts.map +1 -1
  425. package/types/custom_auth/core/auth_flow/v2/CustomAuthResultV2.d.ts +0 -1
  426. package/types/custom_auth/core/auth_flow/v2/CustomAuthResultV2.d.ts.map +1 -1
  427. package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.d.ts +0 -1
  428. package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.d.ts.map +1 -1
  429. package/types/custom_auth/core/auth_flow/v2/result/AuthMethodRegistrationChallengeResultV2.d.ts +0 -2
  430. package/types/custom_auth/core/auth_flow/v2/result/AuthMethodRegistrationChallengeResultV2.d.ts.map +1 -1
  431. package/types/custom_auth/core/auth_flow/v2/result/AuthMethodVerificationSubmitChallengeResultV2.d.ts +0 -2
  432. package/types/custom_auth/core/auth_flow/v2/result/AuthMethodVerificationSubmitChallengeResultV2.d.ts.map +1 -1
  433. package/types/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.d.ts +0 -2
  434. package/types/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.d.ts.map +1 -1
  435. package/types/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.d.ts +0 -2
  436. package/types/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.d.ts.map +1 -1
  437. package/types/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.d.ts +0 -2
  438. package/types/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.d.ts.map +1 -1
  439. package/types/custom_auth/core/auth_flow/v2/result/SubmitPasswordResultV2.d.ts +0 -2
  440. package/types/custom_auth/core/auth_flow/v2/result/SubmitPasswordResultV2.d.ts.map +1 -1
  441. package/types/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.d.ts +0 -2
  442. package/types/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.d.ts.map +1 -1
  443. package/types/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.d.ts +0 -1
  444. package/types/custom_auth/core/auth_flow/v2/state/AuthMethodRegistrationRequiredStateV2.d.ts.map +1 -1
  445. package/types/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.d.ts +0 -1
  446. package/types/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.d.ts.map +1 -1
  447. package/types/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.d.ts +0 -1
  448. package/types/custom_auth/core/auth_flow/v2/state/AuthMethodVerificationRequiredStateV2.d.ts.map +1 -1
  449. package/types/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.d.ts +0 -1
  450. package/types/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.d.ts.map +1 -1
  451. package/types/custom_auth/core/auth_flow/v2/state/CompletedStateV2.d.ts +0 -1
  452. package/types/custom_auth/core/auth_flow/v2/state/CompletedStateV2.d.ts.map +1 -1
  453. package/types/custom_auth/core/auth_flow/v2/state/FailedStateV2.d.ts +0 -1
  454. package/types/custom_auth/core/auth_flow/v2/state/FailedStateV2.d.ts.map +1 -1
  455. package/types/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.d.ts +0 -1
  456. package/types/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.d.ts.map +1 -1
  457. package/types/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.d.ts +0 -1
  458. package/types/custom_auth/core/auth_flow/v2/state/PasswordRequiredStateV2.d.ts.map +1 -1
  459. package/types/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.d.ts +1 -0
  460. package/types/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.d.ts.map +1 -1
  461. package/types/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.d.ts +3 -2
  462. package/types/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.d.ts.map +1 -1
  463. package/types/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.d.ts +10 -1
  464. package/types/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.d.ts.map +1 -1
  465. package/types/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.d.ts +1 -1
  466. package/types/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.d.ts.map +1 -1
  467. package/types/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.d.ts.map +1 -1
  468. package/types/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.d.ts.map +1 -1
  469. package/types/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.d.ts +1 -0
  470. package/types/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.d.ts.map +1 -1
  471. package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.d.ts +8 -0
  472. package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.d.ts.map +1 -1
  473. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.d.ts +4 -5
  474. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.d.ts.map +1 -1
  475. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.d.ts +3 -6
  476. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/ResetPasswordResultsV2.d.ts.map +1 -1
  477. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.d.ts +2 -5
  478. package/types/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.d.ts.map +1 -1
  479. package/types/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.d.ts.map +1 -1
  480. package/types/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.d.ts +0 -2
  481. package/types/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.d.ts.map +1 -1
  482. package/types/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.d.ts +0 -1
  483. package/types/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.d.ts.map +1 -1
  484. package/types/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts +0 -2
  485. package/types/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts.map +1 -1
  486. package/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts +0 -2
  487. package/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts.map +1 -1
  488. package/types/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts +0 -2
  489. package/types/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts.map +1 -1
  490. package/types/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.d.ts +0 -2
  491. package/types/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.d.ts.map +1 -1
  492. package/types/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.d.ts +0 -2
  493. package/types/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.d.ts.map +1 -1
  494. package/types/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.d.ts +0 -1
  495. package/types/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.d.ts.map +1 -1
  496. package/types/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.d.ts +0 -2
  497. package/types/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.d.ts.map +1 -1
  498. package/types/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.d.ts +0 -2
  499. package/types/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.d.ts.map +1 -1
  500. package/types/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.d.ts +0 -1
  501. package/types/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.d.ts.map +1 -1
  502. package/types/interaction_client/BaseInteractionClient.d.ts +3 -2
  503. package/types/interaction_client/BaseInteractionClient.d.ts.map +1 -1
  504. package/types/interaction_client/PlatformAuthInteractionClient.d.ts.map +1 -1
  505. package/types/interaction_client/StandardInteractionClient.d.ts.map +1 -1
  506. package/types/packageMetadata.d.ts +1 -1
  507. package/types/protocol/Authorize.d.ts.map +1 -1
  508. package/types/request/EndSessionPopupRequest.d.ts +3 -0
  509. package/types/request/EndSessionPopupRequest.d.ts.map +1 -1
  510. package/types/request/RedirectRequest.d.ts +3 -0
  511. package/types/request/RedirectRequest.d.ts.map +1 -1
  512. package/types/request/RequestHelpers.d.ts.map +1 -1
  513. package/types/request/SilentRequestHelpers.d.ts +1 -1
  514. package/types/request/SilentRequestHelpers.d.ts.map +1 -1
  515. package/types/telemetry/BrowserPerformanceEvents.d.ts +5 -0
  516. package/types/telemetry/BrowserPerformanceEvents.d.ts.map +1 -1
@@ -21,6 +21,7 @@ import {
21
21
  createCacheError,
22
22
  DEFAULT_CRYPTO_IMPLEMENTATION,
23
23
  ICrypto,
24
+ IDpopNonceProvider,
24
25
  IdTokenEntity,
25
26
  invokeAsync,
26
27
  IPerformanceClient,
@@ -40,6 +41,8 @@ import {
40
41
  AuthToken,
41
42
  getTenantIdFromIdTokenClaims,
42
43
  buildTenantProfile,
44
+ canonicalizeDpopResourceServer,
45
+ validateDpopNonce,
43
46
  } from "@azure/msal-common/browser";
44
47
  import { CacheOptions } from "../config/Configuration.js";
45
48
  import {
@@ -79,6 +82,8 @@ import { EncryptedData, isEncrypted } from "./EncryptedData.js";
79
82
 
80
83
  type KmsiMap = { [homeAccountId: string]: boolean };
81
84
 
85
+ const MAX_RESOURCE_SERVER_NONCES = 50;
86
+
82
87
  /**
83
88
  * Reason an old-schema cache entry was removed during migration.
84
89
  */
@@ -99,7 +104,10 @@ type UpdateOldEntryResult =
99
104
  /**
100
105
  * This class implements the cache storage interface for MSAL through browser local or session storage.
101
106
  */
102
- export class BrowserCacheManager extends CacheManager {
107
+ export class BrowserCacheManager
108
+ extends CacheManager
109
+ implements IDpopNonceProvider
110
+ {
103
111
  // Cache configuration, either set by user or default values.
104
112
  protected cacheConfig: Required<CacheOptions>;
105
113
  // Window storage object (either local or sessionStorage)
@@ -114,6 +122,7 @@ export class BrowserCacheManager extends CacheManager {
114
122
  protected logger: Logger;
115
123
  // Event Handler
116
124
  private eventHandler: EventHandler;
125
+ private dpopNonces = new Map<string, string>();
117
126
 
118
127
  constructor(
119
128
  clientId: string,
@@ -1887,6 +1896,60 @@ export class BrowserCacheManager extends CacheManager {
1887
1896
  return [sku, version];
1888
1897
  }
1889
1898
 
1899
+ /**
1900
+ * Stores a validated resource-server DPoP nonce in PCA-local memory.
1901
+ * @internal
1902
+ */
1903
+ setDpopNonce(
1904
+ resourceRequestUri: string,
1905
+ dpopNonce: string,
1906
+ correlationId: string = ""
1907
+ ): void {
1908
+ const resourceServer = canonicalizeDpopResourceServer(
1909
+ resourceRequestUri,
1910
+ correlationId
1911
+ );
1912
+ const validatedNonce = validateDpopNonce(dpopNonce, correlationId);
1913
+
1914
+ // Reinsert replacements so eviction remains oldest-write ordered.
1915
+ this.dpopNonces.delete(resourceServer);
1916
+ this.dpopNonces.set(resourceServer, validatedNonce);
1917
+
1918
+ if (this.dpopNonces.size > MAX_RESOURCE_SERVER_NONCES) {
1919
+ const oldestResourceServer = this.dpopNonces.keys().next().value;
1920
+ if (oldestResourceServer) {
1921
+ this.dpopNonces.delete(oldestResourceServer);
1922
+ }
1923
+ this.performanceClient.incrementFields(
1924
+ { "ext.dpopNonceCacheEvictionCount": 1 },
1925
+ correlationId
1926
+ );
1927
+ }
1928
+ }
1929
+
1930
+ /**
1931
+ * Reads the current resource-server DPoP nonce from PCA-local memory.
1932
+ * This optional structural capability is consumed by msal-common without
1933
+ * adding methods to the CacheManager abstraction.
1934
+ * @internal
1935
+ */
1936
+ getDpopNonce(
1937
+ resourceRequestUri: string,
1938
+ correlationId: string = ""
1939
+ ): string | undefined {
1940
+ return this.dpopNonces.get(
1941
+ canonicalizeDpopResourceServer(resourceRequestUri, correlationId)
1942
+ );
1943
+ }
1944
+
1945
+ /**
1946
+ * Clears all PCA-local DPoP nonce state.
1947
+ * @internal
1948
+ */
1949
+ clearDpopNonces(): void {
1950
+ this.dpopNonces.clear();
1951
+ }
1952
+
1890
1953
  /**
1891
1954
  *
1892
1955
  * @param key
@@ -2128,6 +2191,7 @@ export class BrowserCacheManager extends CacheManager {
2128
2191
  });
2129
2192
 
2130
2193
  this.internalStorage.clear();
2194
+ this.dpopNonces.clear();
2131
2195
  }
2132
2196
 
2133
2197
  /**
@@ -21,7 +21,9 @@ import {
21
21
  AccountEntityUtils,
22
22
  AuthToken,
23
23
  enforceResourceParameter,
24
+ invokeAsync,
24
25
  } from "@azure/msal-common/browser";
26
+ import * as BrowserPerformanceEvents from "../telemetry/BrowserPerformanceEvents.js";
25
27
  import * as RootPerformanceEvents from "../telemetry/BrowserRootPerformanceEvents.js";
26
28
  import { BrowserConfiguration } from "../config/Configuration.js";
27
29
  import { INavigationClient } from "../navigation/INavigationClient.js";
@@ -174,8 +176,31 @@ export class NestedAppAuthController implements IController {
174
176
  isBroker?: boolean
175
177
  ): Promise<void> {
176
178
  const initCorrelationId = request?.correlationId || createNewGuid();
177
- await this.browserStorage.initialize(initCorrelationId);
178
- return Promise.resolve();
179
+ const initMeasurement = this.performanceClient.startMeasurement(
180
+ RootPerformanceEvents.InitializeClientApplication,
181
+ initCorrelationId
182
+ );
183
+ initMeasurement.add({
184
+ nestedAppAuthRequest: true,
185
+ bridgeType: "NAA",
186
+ });
187
+
188
+ try {
189
+ await invokeAsync(
190
+ this.browserStorage.initialize.bind(this.browserStorage),
191
+ BrowserPerformanceEvents.InitializeCache,
192
+ this.logger,
193
+ this.performanceClient,
194
+ initCorrelationId
195
+ )(initCorrelationId);
196
+ } catch (error) {
197
+ initMeasurement.discard();
198
+ throw error;
199
+ }
200
+
201
+ initMeasurement.end({
202
+ success: true,
203
+ });
179
204
  }
180
205
 
181
206
  /**
@@ -862,6 +887,14 @@ export class NestedAppAuthController implements IController {
862
887
  );
863
888
  }
864
889
 
890
+ /**
891
+ * Rejects DPoP nonce loading until nested app authentication supports
892
+ * forwarding the complete resource proof context.
893
+ */
894
+ loadDpopNonce(): Promise<void> {
895
+ return Promise.reject(NestedAppAuthError.createUnsupportedError());
896
+ }
897
+
865
898
  async hydrateCache(
866
899
  result: AuthenticationResult,
867
900
  request:
@@ -32,6 +32,7 @@ import {
32
32
  TimeUtils,
33
33
  DEFAULT_TOKEN_BINDING_KEY_MANAGER,
34
34
  ITokenBindingKeyManager,
35
+ ResponseHandler,
35
36
  } from "@azure/msal-common/browser";
36
37
  import * as BrowserPerformanceEvents from "../telemetry/BrowserPerformanceEvents.js";
37
38
  import * as BrowserRootPerformanceEvents from "../telemetry/BrowserRootPerformanceEvents.js";
@@ -2241,6 +2242,30 @@ export class StandardController implements IController {
2241
2242
  return this.logger;
2242
2243
  }
2243
2244
 
2245
+ /**
2246
+ * Stores a resource-server DPoP nonce for the matching HTTPS origin.
2247
+ */
2248
+ public async loadDpopNonce(
2249
+ resourceRequestUri: string,
2250
+ dpopNonce: string
2251
+ ): Promise<void> {
2252
+ BrowserUtils.blockNonBrowserEnvironment();
2253
+ const correlationId = createNewGuid();
2254
+ return invokeAsync(
2255
+ async (): Promise<void> => {
2256
+ this.browserStorage.setDpopNonce(
2257
+ resourceRequestUri,
2258
+ dpopNonce,
2259
+ correlationId
2260
+ );
2261
+ },
2262
+ BrowserPerformanceEvents.StandardControllerLoadDpopNonce,
2263
+ this.logger,
2264
+ this.performanceClient,
2265
+ correlationId
2266
+ )();
2267
+ }
2268
+
2244
2269
  /**
2245
2270
  * Replaces the default logger set in configurations with new Logger with new configurations
2246
2271
  * @param logger Logger instance
@@ -2440,18 +2465,17 @@ export class StandardController implements IController {
2440
2465
  this.performanceClient
2441
2466
  );
2442
2467
 
2443
- const shouldDeduplicate =
2444
- preparedRequest.request.authenticationScheme !==
2445
- Constants.AuthenticationScheme.DPOP;
2468
+ const requestKey = preparedRequest.key;
2469
+ const shouldDeduplicate = requestKey !== undefined;
2446
2470
  const inProgressRequest = shouldDeduplicate
2447
- ? this.activeSilentTokenRequests.get(preparedRequest.key)
2471
+ ? this.activeSilentTokenRequests.get(requestKey)
2448
2472
  : undefined;
2449
2473
 
2450
2474
  if (typeof inProgressRequest === "undefined") {
2451
2475
  this.logger.verbose(
2452
2476
  shouldDeduplicate
2453
2477
  ? "acquireTokenSilent called for the first time, storing active request"
2454
- : "acquireTokenSilent called for DPoP request, starting an independent operation",
2478
+ : "acquireTokenSilent called for platform DPoP request, starting an independent operation",
2455
2479
  correlationId
2456
2480
  );
2457
2481
  this.performanceClient.addFields({ deduped: false }, correlationId);
@@ -2469,17 +2493,14 @@ export class StandardController implements IController {
2469
2493
  },
2470
2494
  preparedRequest.account
2471
2495
  );
2472
- if (!shouldDeduplicate) {
2496
+ if (requestKey === undefined) {
2473
2497
  return activeRequest;
2474
2498
  }
2475
2499
 
2476
- this.activeSilentTokenRequests.set(
2477
- preparedRequest.key,
2478
- activeRequest
2479
- );
2500
+ this.activeSilentTokenRequests.set(requestKey, activeRequest);
2480
2501
 
2481
2502
  return activeRequest.finally(() => {
2482
- this.activeSilentTokenRequests.delete(preparedRequest.key);
2503
+ this.activeSilentTokenRequests.delete(requestKey);
2483
2504
  });
2484
2505
  } else {
2485
2506
  this.logger.verbose(
@@ -2487,7 +2508,50 @@ export class StandardController implements IController {
2487
2508
  correlationId
2488
2509
  );
2489
2510
  this.performanceClient.addFields({ deduped: true }, correlationId);
2490
- return inProgressRequest;
2511
+ const joiningRequest = {
2512
+ ...preparedRequest.request,
2513
+ correlationId,
2514
+ };
2515
+ const result = await inProgressRequest;
2516
+ if (
2517
+ joiningRequest.authenticationScheme !==
2518
+ Constants.AuthenticationScheme.DPOP
2519
+ ) {
2520
+ return result;
2521
+ }
2522
+
2523
+ if (
2524
+ result.fromPlatformBroker &&
2525
+ !ResponseHandler.hasDpopKeyId(result)
2526
+ ) {
2527
+ return invokeAsync(
2528
+ this.acquireTokenSilentAsync.bind(this),
2529
+ BrowserPerformanceEvents.AcquireTokenSilentAsync,
2530
+ this.logger,
2531
+ this.performanceClient,
2532
+ correlationId
2533
+ )(joiningRequest, result.account || preparedRequest.account);
2534
+ }
2535
+
2536
+ const dpopProof = await ResponseHandler.generateDpopResourceProof(
2537
+ this.browserCrypto,
2538
+ result,
2539
+ {
2540
+ ...joiningRequest,
2541
+ authority:
2542
+ joiningRequest.authority || this.config.auth.authority,
2543
+ },
2544
+ this.performanceClient,
2545
+ {
2546
+ tokenBindingKeyManager: this.tokenBindingKeyManager,
2547
+ dpopNonceProvider: this.browserStorage,
2548
+ }
2549
+ );
2550
+
2551
+ return {
2552
+ ...result,
2553
+ dpopProof,
2554
+ };
2491
2555
  }
2492
2556
  }
2493
2557
 
@@ -291,6 +291,16 @@ export class UnknownOperatingContextController implements IController {
291
291
  blockNonBrowserEnvironment();
292
292
  }
293
293
 
294
+ /**
295
+ * Blocks DPoP nonce loading until the application has initialized in a
296
+ * supported browser operating context.
297
+ */
298
+ loadDpopNonce(): Promise<void> {
299
+ blockAPICallsBeforeInitialize(this.initialized);
300
+ blockNonBrowserEnvironment();
301
+ return Promise.resolve();
302
+ }
303
+
294
304
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
295
305
  async hydrateCache(
296
306
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
@@ -674,7 +674,9 @@ export async function decryptEarResponse(
674
674
  const iv = base64DecToArr(earJweParts[2]);
675
675
  const ciphertext = base64DecToArr(earJweParts[3]);
676
676
  const tag = base64DecToArr(earJweParts[4]);
677
- const tagLengthBits = tag.byteLength * 8;
677
+ if (tag.byteLength !== 16) {
678
+ throw new Error("Invalid AES-GCM authentication tag length");
679
+ }
678
680
 
679
681
  // Concat ciphertext and tag
680
682
  const encryptedData = new Uint8Array(ciphertext.length + tag.length);
@@ -685,7 +687,7 @@ export async function decryptEarResponse(
685
687
  {
686
688
  name: AES_GCM,
687
689
  iv: iv,
688
- tagLength: tagLengthBits,
690
+ tagLength: 128,
689
691
  additionalData: header,
690
692
  },
691
693
  key,
@@ -39,27 +39,18 @@ export type SignInWithContinuationTokenInputs = {
39
39
  claims?: string;
40
40
  };
41
41
 
42
- /**
43
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
44
- */
45
42
  export type SignInInputsV2 = CustomAuthActionInputs & {
46
43
  username: string;
47
44
  scopes?: Array<string>;
48
45
  claims?: string;
49
46
  };
50
47
 
51
- /**
52
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
53
- */
54
48
  export type ResetPasswordInputsV2 = CustomAuthActionInputs & {
55
49
  username: string;
56
50
  scopes?: Array<string>;
57
51
  claims?: string;
58
52
  };
59
53
 
60
- /**
61
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
62
- */
63
54
  export type SignUpInputsV2 = CustomAuthActionInputs & {
64
55
  username: string;
65
56
  attributes?: UserAccountAttributes;
@@ -122,7 +122,6 @@ export class CustomAuthPublicClientApplication
122
122
 
123
123
  /**
124
124
  * Starts native auth V2 sign-in.
125
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
126
125
  * @param inputs - Inputs for the sign-in V2 flow.
127
126
  * @returns A promise that resolves to the sign-in start result.
128
127
  */
@@ -132,7 +131,6 @@ export class CustomAuthPublicClientApplication
132
131
 
133
132
  /**
134
133
  * Starts native auth V2 sign-up.
135
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
136
134
  * @param inputs - Inputs for the sign-up V2 flow.
137
135
  * @returns A promise that resolves to the sign-up start result.
138
136
  */
@@ -142,7 +140,6 @@ export class CustomAuthPublicClientApplication
142
140
 
143
141
  /**
144
142
  * Starts native auth V2 self-service password reset.
145
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
146
143
  * @param {ResetPasswordInputsV2} inputs - Inputs for the reset-password V2 flow
147
144
  * @returns {Promise<ResetPasswordStartResultV2>} - A promise that resolves to ResetPasswordStartResultV2
148
145
  */
@@ -20,7 +20,6 @@ export interface ICustomAuthPublicClientApplicationV2
20
20
  extends ICustomAuthPublicClientApplication {
21
21
  /**
22
22
  * Starts native auth V2 sign-in.
23
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
24
23
  * @param inputs - Inputs for the sign-in V2 flow.
25
24
  * @returns A promise that resolves to the sign-in start result.
26
25
  */
@@ -28,7 +27,6 @@ export interface ICustomAuthPublicClientApplicationV2
28
27
 
29
28
  /**
30
29
  * Starts native auth V2 sign-up.
31
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
32
30
  * @param inputs - Inputs for the sign-up V2 flow.
33
31
  * @returns A promise that resolves to the sign-up start result.
34
32
  */
@@ -36,7 +34,6 @@ export interface ICustomAuthPublicClientApplicationV2
36
34
 
37
35
  /**
38
36
  * Starts native auth V2 self-service password reset.
39
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
40
37
  * @param {ResetPasswordInputsV2} inputs - Inputs for the reset-password V2 flow
41
38
  * @returns {Promise<ResetPasswordStartResultV2>} A promise that resolves to ResetPasswordStartResultV2
42
39
  */
@@ -38,6 +38,7 @@ import {
38
38
  FLOW_CODE_REQUIRED_V2,
39
39
  FLOW_EXISTING_ACCOUNT_CODE_REQUIRED_V2,
40
40
  FLOW_EXISTING_ACCOUNT_PASSWORD_REQUIRED_V2,
41
+ FLOW_EXISTING_ACCOUNT_START_V2,
41
42
  FLOW_METHOD_SELECTION_REQUIRED_V2,
42
43
  FLOW_PASSWORD_REQUIRED_V2,
43
44
  } from "../core/interaction_client/v2/result/FlowActionResultV2.js";
@@ -845,6 +846,8 @@ export class CustomAuthStandardController
845
846
 
846
847
  async signUpV2(inputs: SignUpInputsV2): Promise<SignUpStartResultV2> {
847
848
  const correlationId = this.getCorrelationId(inputs);
849
+ let scenario: CustomAuthFlowScenarioV2 =
850
+ CustomAuthFlowScenarioV2.SignUp;
848
851
 
849
852
  try {
850
853
  ArgumentValidator.ensureArgumentIsNotNullOrUndefined(
@@ -874,7 +877,7 @@ export class CustomAuthStandardController
874
877
  correlationId
875
878
  );
876
879
 
877
- const result = await this.flowClientV2.signUp({
880
+ const startResult = await this.flowClientV2.signUp({
878
881
  correlationId,
879
882
  username: inputs.username,
880
883
  scopes: inputs.scopes,
@@ -882,6 +885,16 @@ export class CustomAuthStandardController
882
885
  attributes: inputs.attributes,
883
886
  });
884
887
 
888
+ if (startResult.type === FLOW_EXISTING_ACCOUNT_START_V2) {
889
+ scenario = startResult.continuationState.scenario;
890
+ }
891
+ const result =
892
+ startResult.type === FLOW_EXISTING_ACCOUNT_START_V2
893
+ ? await this.flowClientV2.challengeExistingAccount(
894
+ startResult
895
+ )
896
+ : startResult;
897
+
885
898
  if (result.type === FLOW_CODE_REQUIRED_V2) {
886
899
  return new CustomAuthResultV2(
887
900
  new CodeRequiredStateV2({
@@ -971,7 +984,7 @@ export class CustomAuthStandardController
971
984
  );
972
985
 
973
986
  return CustomAuthResultV2.createWithError(error, {
974
- scenario: CustomAuthFlowScenarioV2.SignUp,
987
+ scenario,
975
988
  correlationId,
976
989
  });
977
990
  }
@@ -6,6 +6,7 @@
6
6
  import {
7
7
  Authority,
8
8
  AuthorityOptions,
9
+ formatAuthorityUri,
9
10
  INetworkModule,
10
11
  IPerformanceClient,
11
12
  Logger,
@@ -38,7 +39,7 @@ export class CustomAuthAuthority extends Authority {
38
39
  private customAuthProxyDomain?: string
39
40
  ) {
40
41
  const ciamAuthorityUrl = CustomAuthAuthority.transformCIAMAuthority(
41
- authority,
42
+ formatAuthorityUri(authority),
42
43
  ""
43
44
  );
44
45
 
@@ -44,7 +44,6 @@ export class AuthMethodRegistrationChallengeMethodResult extends AuthFlowResultB
44
44
  /**
45
45
  * Checks if the result indicates that verification is required.
46
46
  * @returns true if verification is required, false otherwise.
47
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
48
47
  */
49
48
  isVerificationRequired(): this is AuthMethodRegistrationChallengeMethodResult & {
50
49
  state: AuthMethodVerificationRequiredState;
@@ -58,7 +57,6 @@ export class AuthMethodRegistrationChallengeMethodResult extends AuthFlowResultB
58
57
  /**
59
58
  * Checks if the result indicates that registration is completed (fast-pass scenario).
60
59
  * @returns true if registration is completed, false otherwise.
61
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
62
60
  */
63
61
  isCompleted(): this is AuthMethodRegistrationChallengeMethodResult & {
64
62
  state: AuthMethodRegistrationCompletedState;
@@ -72,7 +70,6 @@ export class AuthMethodRegistrationChallengeMethodResult extends AuthFlowResultB
72
70
  /**
73
71
  * Checks if the result is in a failed state.
74
72
  * @returns true if the result is failed, false otherwise.
75
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
76
73
  */
77
74
  isFailed(): this is AuthMethodRegistrationChallengeMethodResult & {
78
75
  state: AuthMethodRegistrationFailedState;
@@ -41,7 +41,6 @@ export class AuthMethodRegistrationSubmitChallengeResult extends AuthFlowResultB
41
41
  /**
42
42
  * Checks if the result indicates that registration is completed.
43
43
  * @returns true if registration is completed, false otherwise.
44
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
45
44
  */
46
45
  isCompleted(): this is AuthMethodRegistrationSubmitChallengeResult & {
47
46
  state: AuthMethodRegistrationCompletedState;
@@ -55,7 +54,6 @@ export class AuthMethodRegistrationSubmitChallengeResult extends AuthFlowResultB
55
54
  /**
56
55
  * Checks if the result is in a failed state.
57
56
  * @returns true if the result is failed, false otherwise.
58
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
59
57
  */
60
58
  isFailed(): this is AuthMethodRegistrationSubmitChallengeResult & {
61
59
  state: AuthMethodRegistrationFailedState;
@@ -146,7 +146,6 @@ export class AuthMethodRegistrationRequiredState extends AuthMethodRegistrationS
146
146
  /**
147
147
  * Gets the available authentication methods for registration.
148
148
  * @returns Array of available authentication methods.
149
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
150
149
  */
151
150
  getAuthMethods(): AuthenticationMethod[] {
152
151
  return this.stateParameters.authMethods;
@@ -156,7 +155,6 @@ export class AuthMethodRegistrationRequiredState extends AuthMethodRegistrationS
156
155
  * Challenges an authentication method for registration.
157
156
  * @param authMethodDetails The authentication method details to challenge.
158
157
  * @returns Promise that resolves to AuthMethodRegistrationChallengeMethodResult.
159
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
160
158
  */
161
159
  async challengeAuthMethod(
162
160
  authMethodDetails: AuthMethodDetails
@@ -177,7 +175,6 @@ export class AuthMethodVerificationRequiredState extends AuthMethodRegistrationS
177
175
  /**
178
176
  * Gets the length of the expected verification code.
179
177
  * @returns The code length.
180
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
181
178
  */
182
179
  getCodeLength(): number {
183
180
  return this.stateParameters.codeLength;
@@ -186,7 +183,6 @@ export class AuthMethodVerificationRequiredState extends AuthMethodRegistrationS
186
183
  /**
187
184
  * Gets the channel through which the challenge was sent.
188
185
  * @returns The challenge channel (e.g., "email").
189
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
190
186
  */
191
187
  getChannel(): string {
192
188
  return this.stateParameters.challengeChannel;
@@ -195,7 +191,6 @@ export class AuthMethodVerificationRequiredState extends AuthMethodRegistrationS
195
191
  /**
196
192
  * Gets the target label indicating where the challenge was sent.
197
193
  * @returns The challenge target label (e.g., masked email address).
198
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
199
194
  */
200
195
  getSentTo(): string {
201
196
  return this.stateParameters.challengeTargetLabel;
@@ -205,7 +200,6 @@ export class AuthMethodVerificationRequiredState extends AuthMethodRegistrationS
205
200
  * Submits the verification challenge to complete the authentication method registration.
206
201
  * @param code The verification code entered by the user.
207
202
  * @returns Promise that resolves to AuthMethodRegistrationSubmitChallengeResult.
208
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
209
203
  */
210
204
  async submitChallenge(
211
205
  code: string
@@ -264,7 +258,6 @@ export class AuthMethodVerificationRequiredState extends AuthMethodRegistrationS
264
258
  * Challenges a different authentication method for registration.
265
259
  * @param authMethodDetails The authentication method details to challenge.
266
260
  * @returns Promise that resolves to AuthMethodRegistrationChallengeMethodResult.
267
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
268
261
  */
269
262
  async challengeAuthMethod(
270
263
  authMethodDetails: AuthMethodDetails
@@ -36,7 +36,6 @@ export class MfaRequestChallengeResult extends AuthFlowResultBase<
36
36
  /**
37
37
  * Checks if the result indicates that verification is required.
38
38
  * @returns true if verification is required, false otherwise.
39
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
40
39
  */
41
40
  isVerificationRequired(): this is MfaRequestChallengeResult & {
42
41
  state: MfaVerificationRequiredState;
@@ -47,7 +46,6 @@ export class MfaRequestChallengeResult extends AuthFlowResultBase<
47
46
  /**
48
47
  * Checks if the result is in a failed state.
49
48
  * @returns true if the result is failed, false otherwise.
50
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
51
49
  */
52
50
  isFailed(): this is MfaRequestChallengeResult & {
53
51
  state: MfaFailedState;
@@ -37,7 +37,6 @@ export class MfaSubmitChallengeResult extends AuthFlowResultBase<
37
37
  /**
38
38
  * Checks if the MFA flow is completed successfully.
39
39
  * @returns true if completed, false otherwise.
40
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
41
40
  */
42
41
  isCompleted(): this is MfaSubmitChallengeResult & {
43
42
  state: MfaCompletedState;
@@ -48,7 +47,6 @@ export class MfaSubmitChallengeResult extends AuthFlowResultBase<
48
47
  /**
49
48
  * Checks if the result is in a failed state.
50
49
  * @returns true if the result is failed, false otherwise.
51
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
52
50
  */
53
51
  isFailed(): this is MfaSubmitChallengeResult & {
54
52
  state: MfaFailedState;
@@ -31,7 +31,6 @@ abstract class MfaState<
31
31
  * Requests an MFA challenge for a specific authentication method.
32
32
  * @param authMethodId The authentication method ID to use for the challenge.
33
33
  * @returns Promise that resolves to MfaRequestChallengeResult.
34
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
35
34
  */
36
35
  async requestChallenge(
37
36
  authMethodId: string
@@ -101,7 +100,6 @@ export class MfaAwaitingState extends MfaState<MfaAwaitingStateParameters> {
101
100
  /**
102
101
  * Gets the available authentication methods for MFA.
103
102
  * @returns Array of available authentication methods.
104
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
105
103
  */
106
104
  getAuthMethods(): AuthenticationMethod[] {
107
105
  return this.stateParameters.authMethods;
@@ -121,7 +119,6 @@ export class MfaVerificationRequiredState extends MfaState<MfaVerificationRequir
121
119
  /**
122
120
  * Gets the length of the code that the user needs to provide.
123
121
  * @returns The expected code length.
124
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
125
122
  */
126
123
  getCodeLength(): number {
127
124
  return this.stateParameters.codeLength;
@@ -130,7 +127,6 @@ export class MfaVerificationRequiredState extends MfaState<MfaVerificationRequir
130
127
  /**
131
128
  * Gets the channel through which the challenge was sent.
132
129
  * @returns The challenge channel (e.g., "email").
133
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
134
130
  */
135
131
  getChannel(): string {
136
132
  return this.stateParameters.challengeChannel;
@@ -139,7 +135,6 @@ export class MfaVerificationRequiredState extends MfaState<MfaVerificationRequir
139
135
  /**
140
136
  * Gets the target label indicating where the challenge was sent.
141
137
  * @returns The challenge target label (e.g., masked email address).
142
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
143
138
  */
144
139
  getSentTo(): string {
145
140
  return this.stateParameters.challengeTargetLabel;
@@ -149,7 +144,6 @@ export class MfaVerificationRequiredState extends MfaState<MfaVerificationRequir
149
144
  * Submits the MFA challenge (e.g., OTP code) to complete the authentication.
150
145
  * @param challenge The challenge code (e.g., OTP code) entered by the user.
151
146
  * @returns Promise that resolves to MfaSubmitChallengeResult.
152
- * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
153
147
  */
154
148
  async submitChallenge(
155
149
  challenge: string