@azure/msal-browser 5.25.0 → 5.26.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 (478) hide show
  1. package/dist/app/IPublicClientApplication.mjs +1 -1
  2. package/dist/app/PublicClientApplication.mjs +1 -1
  3. package/dist/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
  4. package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs +1 -1
  5. package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
  6. package/dist/broker/nativeBroker/PlatformAuthProvider.mjs +1 -1
  7. package/dist/broker/nativeBroker/PlatformAuthRequest.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/NestedAppAuthController.mjs +7 -2
  22. package/dist/controllers/NestedAppAuthController.mjs.map +1 -1
  23. package/dist/controllers/StandardController.mjs +1 -1
  24. package/dist/crypto/BrowserCrypto.mjs +1 -1
  25. package/dist/crypto/CryptoOps.mjs +1 -1
  26. package/dist/crypto/PkceGenerator.mjs +1 -1
  27. package/dist/crypto/SignedHttpRequest.mjs +1 -1
  28. package/dist/crypto/TokenBindingKeyManager.mjs +1 -1
  29. package/dist/custom_auth/CustomAuthConstants.mjs +1 -1
  30. package/dist/custom_auth/CustomAuthPublicClientApplication.mjs +1 -1
  31. package/dist/custom_auth/controller/CustomAuthStandardController.mjs +49 -19
  32. package/dist/custom_auth/controller/CustomAuthStandardController.mjs.map +1 -1
  33. package/dist/custom_auth/core/CustomAuthAuthority.mjs +1 -1
  34. package/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs +1 -1
  35. package/dist/custom_auth/core/auth_flow/AuthFlowResultBase.mjs +1 -1
  36. package/dist/custom_auth/core/auth_flow/AuthFlowState.mjs +1 -1
  37. package/dist/custom_auth/core/auth_flow/AuthFlowStateTypes.mjs +1 -1
  38. package/dist/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs +1 -1
  39. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs +1 -1
  40. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs +1 -1
  41. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.mjs +1 -1
  42. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.mjs +1 -1
  43. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs +1 -1
  44. package/dist/custom_auth/core/auth_flow/mfa/error_type/MfaError.mjs +1 -1
  45. package/dist/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.mjs +1 -1
  46. package/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.mjs +1 -1
  47. package/dist/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.mjs +1 -1
  48. package/dist/custom_auth/core/auth_flow/mfa/state/MfaFailedState.mjs +1 -1
  49. package/dist/custom_auth/core/auth_flow/mfa/state/MfaState.mjs +1 -1
  50. package/dist/custom_auth/core/auth_flow/v2/CustomAuthFlowScenarioV2.mjs +1 -1
  51. package/dist/custom_auth/core/auth_flow/v2/CustomAuthResultV2.mjs +8 -7
  52. package/dist/custom_auth/core/auth_flow/v2/CustomAuthResultV2.mjs.map +1 -1
  53. package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.mjs +4 -3
  54. package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.mjs.map +1 -1
  55. package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.mjs +174 -0
  56. package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.mjs.map +1 -0
  57. package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.mjs +67 -17
  58. package/dist/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.mjs.map +1 -1
  59. package/dist/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.mjs +3 -4
  60. package/dist/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.mjs.map +1 -1
  61. package/dist/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.mjs +7 -15
  62. package/dist/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.mjs.map +1 -1
  63. package/dist/custom_auth/core/auth_flow/v2/state/CompletedStateV2.mjs +1 -1
  64. package/dist/custom_auth/core/auth_flow/v2/state/FailedStateV2.mjs +1 -1
  65. package/dist/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.mjs +1 -5
  66. package/dist/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.mjs.map +1 -1
  67. package/dist/custom_auth/core/error/CustomAuthApiError.mjs +3 -2
  68. package/dist/custom_auth/core/error/CustomAuthApiError.mjs.map +1 -1
  69. package/dist/custom_auth/core/error/CustomAuthError.mjs +1 -1
  70. package/dist/custom_auth/core/error/HttpError.mjs +1 -1
  71. package/dist/custom_auth/core/error/HttpErrorCodes.mjs +1 -1
  72. package/dist/custom_auth/core/error/InvalidArgumentError.mjs +1 -1
  73. package/dist/custom_auth/core/error/InvalidConfigurationError.mjs +1 -1
  74. package/dist/custom_auth/core/error/InvalidConfigurationErrorCodes.mjs +1 -1
  75. package/dist/custom_auth/core/error/MethodNotImplementedError.mjs +1 -1
  76. package/dist/custom_auth/core/error/MsalCustomAuthError.mjs +1 -1
  77. package/dist/custom_auth/core/error/NoCachedAccountFoundError.mjs +1 -1
  78. package/dist/custom_auth/core/error/ParsedUrlError.mjs +1 -1
  79. package/dist/custom_auth/core/error/ParsedUrlErrorCodes.mjs +1 -1
  80. package/dist/custom_auth/core/error/UnexpectedError.mjs +1 -1
  81. package/dist/custom_auth/core/error/UnsupportedEnvironmentError.mjs +1 -1
  82. package/dist/custom_auth/core/error/UserAccountAttributeError.mjs +1 -1
  83. package/dist/custom_auth/core/error/UserAlreadySignedInError.mjs +1 -1
  84. package/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs +1 -1
  85. package/dist/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs +1 -1
  86. package/dist/custom_auth/core/interaction_client/jit/JitClient.mjs +1 -1
  87. package/dist/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs +1 -1
  88. package/dist/custom_auth/core/interaction_client/mfa/MfaClient.mjs +1 -1
  89. package/dist/custom_auth/core/interaction_client/mfa/result/MfaActionResult.mjs +1 -1
  90. package/dist/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.mjs +61 -52
  91. package/dist/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.mjs.map +1 -1
  92. package/dist/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.mjs +6 -3
  93. package/dist/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.mjs.map +1 -1
  94. package/dist/custom_auth/core/interaction_client/v2/result/FlowActionResultV2.mjs +1 -1
  95. package/dist/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs +1 -1
  96. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs +1 -1
  97. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs +1 -1
  98. package/dist/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.mjs +1 -1
  99. package/dist/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs +1 -1
  100. package/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs +1 -1
  101. package/dist/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs +1 -1
  102. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs +1 -1
  103. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs +1 -1
  104. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.mjs +1 -2
  105. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.mjs.map +1 -1
  106. package/dist/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.mjs +12 -10
  107. package/dist/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.mjs.map +1 -1
  108. package/dist/custom_auth/core/network_client/custom_auth_api/v2/CustomAuthApiClientV2.mjs +1 -1
  109. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.mjs +3 -3
  110. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.mjs.map +1 -1
  111. package/dist/custom_auth/core/network_client/custom_auth_api/v2/HrefResolverV2.mjs +1 -1
  112. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.mjs +3 -7
  113. package/dist/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.mjs.map +1 -1
  114. package/dist/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.mjs +2 -1
  115. package/dist/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.mjs.map +1 -1
  116. package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/BaseResultsV2.mjs +1 -1
  117. package/dist/custom_auth/core/network_client/custom_auth_api/v2/result/SignUpResultsV2.mjs +1 -1
  118. package/dist/custom_auth/core/network_client/http_client/FetchHttpClient.mjs +1 -1
  119. package/dist/custom_auth/core/network_client/http_client/IHttpClient.mjs +1 -1
  120. package/dist/custom_auth/core/telemetry/FlowApiIdHelperV2.mjs +1 -1
  121. package/dist/custom_auth/core/telemetry/PublicApiId.mjs +1 -1
  122. package/dist/custom_auth/core/utils/ArgumentValidator.mjs +8 -2
  123. package/dist/custom_auth/core/utils/ArgumentValidator.mjs.map +1 -1
  124. package/dist/custom_auth/core/utils/CustomHeaderUtils.mjs +1 -1
  125. package/dist/custom_auth/core/utils/UrlUtils.mjs +1 -1
  126. package/dist/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs +1 -1
  127. package/dist/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs +1 -1
  128. package/dist/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.mjs +1 -1
  129. package/dist/custom_auth/get_account/auth_flow/result/GetAccountResult.mjs +1 -1
  130. package/dist/custom_auth/get_account/auth_flow/result/SignOutResult.mjs +1 -1
  131. package/dist/custom_auth/get_account/auth_flow/state/GetAccessTokenState.mjs +1 -1
  132. package/dist/custom_auth/get_account/auth_flow/state/GetAccountState.mjs +1 -1
  133. package/dist/custom_auth/get_account/auth_flow/state/SignOutState.mjs +1 -1
  134. package/dist/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs +1 -1
  135. package/dist/custom_auth/index.mjs +2 -11
  136. package/dist/custom_auth/index.mjs.map +1 -1
  137. package/dist/custom_auth/operating_context/CustomAuthOperatingContext.mjs +1 -1
  138. package/dist/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs +1 -1
  139. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs +1 -1
  140. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.mjs +1 -1
  141. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.mjs +1 -1
  142. package/dist/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.mjs +1 -1
  143. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs +1 -1
  144. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.mjs +1 -1
  145. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.mjs +1 -1
  146. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs +1 -1
  147. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs +1 -1
  148. package/dist/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.mjs +1 -3
  149. package/dist/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.mjs.map +1 -1
  150. package/dist/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs +1 -1
  151. package/dist/custom_auth/sign_in/auth_flow/SignInScenario.mjs +1 -1
  152. package/dist/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs +1 -1
  153. package/dist/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs +1 -1
  154. package/dist/custom_auth/sign_in/auth_flow/result/SignInResult.mjs +1 -1
  155. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +1 -1
  156. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +1 -1
  157. package/dist/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs +1 -1
  158. package/dist/custom_auth/sign_in/auth_flow/state/SignInCompletedState.mjs +1 -1
  159. package/dist/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs +1 -1
  160. package/dist/custom_auth/sign_in/auth_flow/state/SignInFailedState.mjs +1 -1
  161. package/dist/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs +1 -1
  162. package/dist/custom_auth/sign_in/auth_flow/state/SignInState.mjs +1 -1
  163. package/dist/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.mjs +5 -5
  164. package/dist/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.mjs.map +1 -1
  165. package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.mjs +5 -16
  166. package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.mjs.map +1 -1
  167. package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInStateTransitionHandlerV2.mjs +35 -0
  168. package/dist/custom_auth/sign_in/auth_flow/v2/state/SignInStateTransitionHandlerV2.mjs.map +1 -0
  169. package/dist/custom_auth/sign_in/interaction_client/SignInClient.mjs +1 -1
  170. package/dist/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs +1 -1
  171. package/dist/custom_auth/sign_up/auth_flow/error_type/SignUpError.mjs +1 -1
  172. package/dist/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs +1 -1
  173. package/dist/custom_auth/sign_up/auth_flow/result/SignUpResult.mjs +1 -1
  174. package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.mjs +1 -1
  175. package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.mjs +1 -1
  176. package/dist/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.mjs +1 -1
  177. package/dist/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs +1 -1
  178. package/dist/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs +1 -1
  179. package/dist/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.mjs +1 -1
  180. package/dist/custom_auth/sign_up/auth_flow/state/SignUpFailedState.mjs +1 -1
  181. package/dist/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs +1 -1
  182. package/dist/custom_auth/sign_up/auth_flow/state/SignUpState.mjs +1 -1
  183. package/dist/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.mjs +1 -3
  184. package/dist/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.mjs.map +1 -1
  185. package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpAttributesRequiredStateBaseV2.mjs +1 -1
  186. package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.mjs +1 -3
  187. package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.mjs.map +1 -1
  188. package/dist/custom_auth/sign_up/auth_flow/v2/state/SignUpStateTransitionHandlerV2.mjs +1 -1
  189. package/dist/custom_auth/sign_up/interaction_client/SignUpClient.mjs +1 -1
  190. package/dist/custom_auth/sign_up/interaction_client/result/SignUpActionResult.mjs +1 -1
  191. package/dist/encode/Base64Decode.mjs +1 -1
  192. package/dist/encode/Base64Encode.mjs +1 -1
  193. package/dist/error/BrowserAuthError.mjs +1 -1
  194. package/dist/error/BrowserAuthErrorCodes.mjs +1 -1
  195. package/dist/error/BrowserConfigurationAuthError.mjs +1 -1
  196. package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
  197. package/dist/error/NativeAuthError.mjs +1 -1
  198. package/dist/error/NativeAuthErrorCodes.mjs +1 -1
  199. package/dist/error/NestedAppAuthError.mjs +1 -1
  200. package/dist/event/EventHandler.mjs +1 -1
  201. package/dist/event/EventMessage.mjs +1 -1
  202. package/dist/event/EventType.mjs +1 -1
  203. package/dist/index.mjs +1 -1
  204. package/dist/interaction_client/BaseInteractionClient.mjs +1 -1
  205. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
  206. package/dist/interaction_client/PlatformAuthInteractionClient.mjs +1 -1
  207. package/dist/interaction_client/PopupClient.mjs +4 -3
  208. package/dist/interaction_client/PopupClient.mjs.map +1 -1
  209. package/dist/interaction_client/RedirectClient.mjs +4 -3
  210. package/dist/interaction_client/RedirectClient.mjs.map +1 -1
  211. package/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
  212. package/dist/interaction_client/SilentCacheClient.mjs +1 -1
  213. package/dist/interaction_client/SilentIframeClient.mjs +4 -3
  214. package/dist/interaction_client/SilentIframeClient.mjs.map +1 -1
  215. package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
  216. package/dist/interaction_client/StandardInteractionClient.mjs +1 -1
  217. package/dist/interaction_handler/InteractionHandler.mjs +1 -1
  218. package/dist/interaction_handler/SilentHandler.mjs +1 -1
  219. package/dist/log-strings-mapping.json +1027 -1027
  220. package/dist/naa/BridgeError.mjs +1 -1
  221. package/dist/naa/BridgeProxy.mjs +1 -1
  222. package/dist/naa/BridgeStatusCode.mjs +1 -1
  223. package/dist/naa/mapping/NestedAppAuthAdapter.mjs +1 -1
  224. package/dist/navigation/NavigationClient.mjs +1 -1
  225. package/dist/network/FetchClient.mjs +1 -1
  226. package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
  227. package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
  228. package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
  229. package/dist/packageMetadata.mjs +2 -2
  230. package/dist/popup_relay/constants.mjs +1 -1
  231. package/dist/popup_relay/index.mjs +1 -1
  232. package/dist/popup_relay/relayClient.mjs +1 -1
  233. package/dist/protocol/Authorize.mjs +1 -1
  234. package/dist/redirect_bridge/index.mjs +1 -1
  235. package/dist/request/RequestHelpers.mjs +1 -1
  236. package/dist/request/SilentRequestHelpers.mjs +9 -3
  237. package/dist/request/SilentRequestHelpers.mjs.map +1 -1
  238. package/dist/response/ResponseHandler.mjs +1 -1
  239. package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
  240. package/dist/telemetry/BrowserPerformanceEvents.mjs +1 -1
  241. package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
  242. package/dist/telemetry/BrowserRootPerformanceEvents.mjs +1 -1
  243. package/dist/utils/BrowserConstants.mjs +1 -1
  244. package/dist/utils/BrowserDetection.mjs +53 -0
  245. package/dist/utils/BrowserDetection.mjs.map +1 -0
  246. package/dist/utils/BrowserProtocolUtils.mjs +1 -1
  247. package/dist/utils/BrowserUtils.mjs +1 -1
  248. package/dist/utils/Helpers.mjs +1 -1
  249. package/dist/utils/MsalFrameStatsUtils.mjs +1 -1
  250. package/dist/webBrokerBridge/PendingRequestRegistry.mjs +1 -1
  251. package/dist/webBrokerBridge/PerfEventNames.mjs +1 -1
  252. package/dist/webBrokerBridge/WebBrokerBridgeError.mjs +1 -1
  253. package/dist/webBrokerBridge/WebBrokerBridgeErrorMap.mjs +1 -1
  254. package/dist/webBrokerBridge/adapter/CrossVersionRequestAdapter.mjs +1 -1
  255. package/dist/webBrokerBridge/index.mjs +1 -1
  256. package/lib/custom-auth-path/log-strings-mapping.json +519 -519
  257. package/lib/custom-auth-path/msal-custom-auth.cjs +601 -657
  258. package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
  259. package/lib/custom-auth-path/msal-custom-auth.js +602 -658
  260. package/lib/custom-auth-path/msal-custom-auth.js.map +1 -1
  261. package/lib/log-strings-mapping.json +7 -3
  262. package/lib/msal-browser.cjs +136 -78
  263. package/lib/msal-browser.cjs.map +1 -1
  264. package/lib/msal-browser.js +136 -78
  265. package/lib/msal-browser.js.map +1 -1
  266. package/lib/msal-browser.min.js +2 -2
  267. package/lib/popup-relay/msal-popup-relay.cjs +2 -2
  268. package/lib/popup-relay/msal-popup-relay.cjs.map +1 -1
  269. package/lib/popup-relay/msal-popup-relay.js +2 -2
  270. package/lib/popup-relay/msal-popup-relay.js.map +1 -1
  271. package/lib/popup-relay/msal-popup-relay.min.js +1 -1
  272. package/lib/redirect-bridge/msal-redirect-bridge.cjs +10 -10
  273. package/lib/redirect-bridge/msal-redirect-bridge.cjs.map +1 -1
  274. package/lib/redirect-bridge/msal-redirect-bridge.js +10 -10
  275. package/lib/redirect-bridge/msal-redirect-bridge.js.map +1 -1
  276. package/lib/redirect-bridge/msal-redirect-bridge.min.js +1 -1
  277. package/lib/web-broker-bridge/msal-web-broker-bridge.cjs +1 -1
  278. package/package.json +2 -2
  279. package/src/controllers/NestedAppAuthController.ts +6 -1
  280. package/src/custom_auth/CustomAuthActionInputs.ts +16 -6
  281. package/src/custom_auth/controller/CustomAuthStandardController.ts +78 -17
  282. package/src/custom_auth/core/auth_flow/v2/CustomAuthResultV2.ts +18 -30
  283. package/src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.ts +1 -0
  284. package/src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.ts +239 -0
  285. package/src/custom_auth/core/auth_flow/v2/result/MFAResendChallengeResultV2.ts +2 -5
  286. package/src/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.ts +0 -2
  287. package/src/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.ts +13 -10
  288. package/src/custom_auth/core/auth_flow/v2/result/ResendCodeResultV2.ts +19 -0
  289. package/src/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.ts +3 -6
  290. package/src/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.ts +4 -6
  291. package/src/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.ts +114 -17
  292. package/src/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.ts +6 -3
  293. package/src/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.ts +17 -19
  294. package/src/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.ts +5 -5
  295. package/src/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.ts +0 -4
  296. package/src/custom_auth/core/error/CustomAuthApiError.ts +2 -1
  297. package/src/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.ts +3 -4
  298. package/src/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.ts +75 -68
  299. package/src/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.ts +6 -3
  300. package/src/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.ts +2 -4
  301. package/src/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.ts +0 -1
  302. package/src/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.ts +17 -15
  303. package/src/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.ts +1 -1
  304. package/src/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.ts +3 -11
  305. package/src/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.ts +2 -3
  306. package/src/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorNormalizerV2.ts +1 -0
  307. package/src/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorResponsesV2.ts +2 -0
  308. package/src/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.ts +1 -1
  309. package/src/custom_auth/core/utils/ArgumentValidator.ts +13 -0
  310. package/src/custom_auth/index.ts +4 -14
  311. package/src/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.ts +6 -10
  312. package/src/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.ts +0 -2
  313. package/src/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.ts +3 -6
  314. package/src/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.ts +2 -4
  315. package/src/custom_auth/sign_in/auth_flow/v2/result/SubmitPasswordResultV2.ts +2 -4
  316. package/src/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.ts +5 -4
  317. package/src/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.ts +4 -23
  318. package/src/custom_auth/sign_in/auth_flow/v2/state/SignInStateTransitionHandlerV2.ts +56 -0
  319. package/src/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.ts +1 -5
  320. package/src/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.ts +2 -5
  321. package/src/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.ts +0 -2
  322. package/src/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.ts +0 -2
  323. package/src/interaction_client/PopupClient.ts +9 -1
  324. package/src/interaction_client/RedirectClient.ts +9 -4
  325. package/src/interaction_client/SilentIframeClient.ts +9 -2
  326. package/src/packageMetadata.ts +1 -1
  327. package/src/request/SilentRequestHelpers.ts +11 -2
  328. package/src/utils/BrowserDetection.ts +85 -0
  329. package/types/controllers/NestedAppAuthController.d.ts.map +1 -1
  330. package/types/custom_auth/CustomAuthActionInputs.d.ts +16 -5
  331. package/types/custom_auth/CustomAuthActionInputs.d.ts.map +1 -1
  332. package/types/custom_auth/CustomAuthConstants.d.ts +1 -1
  333. package/types/custom_auth/controller/CustomAuthStandardController.d.ts +1 -0
  334. package/types/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
  335. package/types/custom_auth/core/auth_flow/v2/CustomAuthResultV2.d.ts +9 -11
  336. package/types/custom_auth/core/auth_flow/v2/CustomAuthResultV2.d.ts.map +1 -1
  337. package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.d.ts +1 -0
  338. package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorSubcodesV2.d.ts.map +1 -1
  339. package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.d.ts +90 -0
  340. package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorV2.d.ts.map +1 -0
  341. package/types/custom_auth/core/auth_flow/v2/result/MFAResendChallengeResultV2.d.ts +1 -2
  342. package/types/custom_auth/core/auth_flow/v2/result/MFAResendChallengeResultV2.d.ts.map +1 -1
  343. package/types/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.d.ts +1 -2
  344. package/types/custom_auth/core/auth_flow/v2/result/MFASubmitChallengeResultV2.d.ts.map +1 -1
  345. package/types/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.d.ts +8 -7
  346. package/types/custom_auth/core/auth_flow/v2/result/RequestChallengeResultV2.d.ts.map +1 -1
  347. package/types/custom_auth/core/auth_flow/v2/result/ResendCodeResultV2.d.ts +13 -0
  348. package/types/custom_auth/core/auth_flow/v2/result/ResendCodeResultV2.d.ts.map +1 -0
  349. package/types/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.d.ts +2 -3
  350. package/types/custom_auth/core/auth_flow/v2/result/ResetPasswordStartResultV2.d.ts.map +1 -1
  351. package/types/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.d.ts +5 -6
  352. package/types/custom_auth/core/auth_flow/v2/result/VerifyChallengeResultV2.d.ts.map +1 -1
  353. package/types/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.d.ts +9 -6
  354. package/types/custom_auth/core/auth_flow/v2/state/AuthMethodSelectionRequiredStateV2.d.ts.map +1 -1
  355. package/types/custom_auth/core/auth_flow/v2/state/ChallengeVerificationStateBaseV2.d.ts.map +1 -1
  356. package/types/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.d.ts +2 -2
  357. package/types/custom_auth/core/auth_flow/v2/state/CodeRequiredStateV2.d.ts.map +1 -1
  358. package/types/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.d.ts +5 -3
  359. package/types/custom_auth/core/auth_flow/v2/state/CustomAuthStateParametersV2.d.ts.map +1 -1
  360. package/types/custom_auth/core/auth_flow/v2/state/MFAVerificationRequiredStateV2.d.ts.map +1 -1
  361. package/types/custom_auth/core/error/CustomAuthApiError.d.ts +2 -1
  362. package/types/custom_auth/core/error/CustomAuthApiError.d.ts.map +1 -1
  363. package/types/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.d.ts +1 -3
  364. package/types/custom_auth/core/interaction_client/v2/FlowContinuationStateV2.d.ts.map +1 -1
  365. package/types/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.d.ts +2 -2
  366. package/types/custom_auth/core/interaction_client/v2/FlowInteractionClientV2.d.ts.map +1 -1
  367. package/types/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.d.ts +2 -2
  368. package/types/custom_auth/core/interaction_client/v2/InteractionClientBaseV2.d.ts.map +1 -1
  369. package/types/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.d.ts +2 -4
  370. package/types/custom_auth/core/interaction_client/v2/parameter/FlowParamsV2.d.ts.map +1 -1
  371. package/types/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.d.ts +0 -1
  372. package/types/custom_auth/core/network_client/custom_auth_api/v2/ApiClientConstantsV2.d.ts.map +1 -1
  373. package/types/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.d.ts +2 -2
  374. package/types/custom_auth/core/network_client/custom_auth_api/v2/BaseApiClientV2.d.ts.map +1 -1
  375. package/types/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.d.ts +1 -1
  376. package/types/custom_auth/core/network_client/custom_auth_api/v2/ErrorCodesV2.d.ts.map +1 -1
  377. package/types/custom_auth/core/network_client/custom_auth_api/v2/ResponseHandlerV2.d.ts.map +1 -1
  378. package/types/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.d.ts +1 -2
  379. package/types/custom_auth/core/network_client/custom_auth_api/v2/request/RequestsV2.d.ts.map +1 -1
  380. package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorResponsesV2.d.ts +2 -0
  381. package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ErrorResponsesV2.d.ts.map +1 -1
  382. package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.d.ts +1 -1
  383. package/types/custom_auth/core/network_client/custom_auth_api/v2/response/ResponsesV2.d.ts.map +1 -1
  384. package/types/custom_auth/core/utils/ArgumentValidator.d.ts +1 -0
  385. package/types/custom_auth/core/utils/ArgumentValidator.d.ts.map +1 -1
  386. package/types/custom_auth/index.d.ts +3 -12
  387. package/types/custom_auth/index.d.ts.map +1 -1
  388. package/types/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.d.ts +5 -7
  389. package/types/custom_auth/reset_password/auth_flow/v2/result/SubmitNewPasswordResultV2.d.ts.map +1 -1
  390. package/types/custom_auth/reset_password/auth_flow/v2/state/NewPasswordRequiredStateV2.d.ts.map +1 -1
  391. package/types/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.d.ts +4 -6
  392. package/types/custom_auth/sign_in/auth_flow/v2/result/SignInContinuationResultV2.d.ts.map +1 -1
  393. package/types/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.d.ts +3 -4
  394. package/types/custom_auth/sign_in/auth_flow/v2/result/SignInStartResultV2.d.ts.map +1 -1
  395. package/types/custom_auth/sign_in/auth_flow/v2/result/SubmitPasswordResultV2.d.ts +3 -4
  396. package/types/custom_auth/sign_in/auth_flow/v2/result/SubmitPasswordResultV2.d.ts.map +1 -1
  397. package/types/custom_auth/sign_in/auth_flow/v2/state/PasswordRequiredStateV2.d.ts.map +1 -1
  398. package/types/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.d.ts +4 -9
  399. package/types/custom_auth/sign_in/auth_flow/v2/state/SignInContinuationStateV2.d.ts.map +1 -1
  400. package/types/custom_auth/sign_in/auth_flow/v2/state/SignInStateTransitionHandlerV2.d.ts +9 -0
  401. package/types/custom_auth/sign_in/auth_flow/v2/state/SignInStateTransitionHandlerV2.d.ts.map +1 -0
  402. package/types/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.d.ts +1 -2
  403. package/types/custom_auth/sign_up/auth_flow/v2/result/SignUpStartResultV2.d.ts.map +1 -1
  404. package/types/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.d.ts +1 -2
  405. package/types/custom_auth/sign_up/auth_flow/v2/result/SubmitAttributesResultV2.d.ts.map +1 -1
  406. package/types/custom_auth/sign_up/auth_flow/v2/state/AttributesRequiredStateV2.d.ts.map +1 -1
  407. package/types/custom_auth/sign_up/auth_flow/v2/state/SignUpPasswordRequiredStateV2.d.ts.map +1 -1
  408. package/types/interaction_client/PopupClient.d.ts.map +1 -1
  409. package/types/interaction_client/RedirectClient.d.ts.map +1 -1
  410. package/types/interaction_client/SilentIframeClient.d.ts.map +1 -1
  411. package/types/packageMetadata.d.ts +1 -1
  412. package/types/request/SilentRequestHelpers.d.ts +1 -1
  413. package/types/request/SilentRequestHelpers.d.ts.map +1 -1
  414. package/types/utils/BrowserDetection.d.ts +17 -0
  415. package/types/utils/BrowserDetection.d.ts.map +1 -0
  416. package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.mjs +0 -102
  417. package/dist/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.mjs.map +0 -1
  418. package/dist/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.mjs +0 -20
  419. package/dist/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.mjs.map +0 -1
  420. package/dist/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.mjs +0 -36
  421. package/dist/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.mjs.map +0 -1
  422. package/dist/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.mjs +0 -29
  423. package/dist/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.mjs.map +0 -1
  424. package/dist/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.mjs +0 -36
  425. package/dist/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.mjs.map +0 -1
  426. package/dist/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.mjs +0 -61
  427. package/dist/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.mjs.map +0 -1
  428. package/dist/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.mjs +0 -29
  429. package/dist/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.mjs.map +0 -1
  430. package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.mjs +0 -18
  431. package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.mjs.map +0 -1
  432. package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.mjs +0 -37
  433. package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.mjs.map +0 -1
  434. package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.mjs +0 -23
  435. package/dist/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.mjs.map +0 -1
  436. package/dist/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.mjs +0 -25
  437. package/dist/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.mjs.map +0 -1
  438. package/dist/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.mjs +0 -33
  439. package/dist/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.mjs.map +0 -1
  440. package/src/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.ts +0 -146
  441. package/src/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.ts +0 -15
  442. package/src/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.ts +0 -33
  443. package/src/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.ts +0 -25
  444. package/src/custom_auth/core/auth_flow/v2/result/MFARequestChallengeResultV2.ts +0 -18
  445. package/src/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.ts +0 -59
  446. package/src/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.ts +0 -76
  447. package/src/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.ts +0 -25
  448. package/src/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.ts +0 -13
  449. package/src/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.ts +0 -35
  450. package/src/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.ts +0 -19
  451. package/src/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.ts +0 -21
  452. package/src/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.ts +0 -32
  453. package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.d.ts +0 -40
  454. package/types/custom_auth/core/auth_flow/v2/error/AuthFlowErrorBaseV2.d.ts.map +0 -1
  455. package/types/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.d.ts +0 -11
  456. package/types/custom_auth/core/auth_flow/v2/error/RequestChallengeErrorV2.d.ts.map +0 -1
  457. package/types/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.d.ts +0 -23
  458. package/types/custom_auth/core/auth_flow/v2/error/ResetPasswordStartErrorV2.d.ts.map +0 -1
  459. package/types/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.d.ts +0 -18
  460. package/types/custom_auth/core/auth_flow/v2/error/VerifyChallengeErrorV2.d.ts.map +0 -1
  461. package/types/custom_auth/core/auth_flow/v2/result/MFARequestChallengeResultV2.d.ts +0 -7
  462. package/types/custom_auth/core/auth_flow/v2/result/MFARequestChallengeResultV2.d.ts.map +0 -1
  463. package/types/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.d.ts +0 -17
  464. package/types/custom_auth/core/auth_flow/v2/state/AuthenticationMethodSelectionStateBaseV2.d.ts.map +0 -1
  465. package/types/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.d.ts +0 -18
  466. package/types/custom_auth/core/auth_flow/v2/state/MFARequiredStateV2.d.ts.map +0 -1
  467. package/types/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.d.ts +0 -18
  468. package/types/custom_auth/reset_password/auth_flow/v2/error_type/SubmitNewPasswordErrorV2.d.ts.map +0 -1
  469. package/types/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.d.ts +0 -9
  470. package/types/custom_auth/sign_in/auth_flow/v2/error_type/SignInContinuationErrorV2.d.ts.map +0 -1
  471. package/types/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.d.ts +0 -22
  472. package/types/custom_auth/sign_in/auth_flow/v2/error_type/SignInStartErrorV2.d.ts.map +0 -1
  473. package/types/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.d.ts +0 -12
  474. package/types/custom_auth/sign_in/auth_flow/v2/error_type/SubmitPasswordErrorV2.d.ts.map +0 -1
  475. package/types/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.d.ts +0 -14
  476. package/types/custom_auth/sign_up/auth_flow/v2/error_type/SignUpStartErrorV2.d.ts.map +0 -1
  477. package/types/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.d.ts +0 -20
  478. package/types/custom_auth/sign_up/auth_flow/v2/error_type/SubmitAttributesErrorV2.d.ts.map +0 -1
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-browser v5.25.0 2026-10-06 */
1
+ /*! @azure/msal-browser v5.26.0 2026-10-21 */
2
2
  'use strict';
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
@@ -6,7 +6,7 @@
6
6
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.msalCustomAuth = {}));
7
7
  })(this, (function (exports) { 'use strict';
8
8
 
9
- /*! @azure/msal-common v16.14.2 2026-10-06 */
9
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
10
10
  /*
11
11
  * Copyright (c) Microsoft Corporation. All rights reserved.
12
12
  * Licensed under the MIT License.
@@ -60,7 +60,7 @@
60
60
  const CLI_DATA = "clidata";
61
61
  const ATTRIBUTE_TOKENS = "attribute_tokens";
62
62
 
63
- /*! @azure/msal-common v16.14.2 2026-10-06 */
63
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
64
64
  /*
65
65
  * Copyright (c) Microsoft Corporation. All rights reserved.
66
66
  * Licensed under the MIT License.
@@ -294,7 +294,7 @@
294
294
  // Token renewal offset default in seconds
295
295
  const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
296
296
 
297
- /*! @azure/msal-common v16.14.2 2026-10-06 */
297
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
298
298
  /*
299
299
  * Copyright (c) Microsoft Corporation. All rights reserved.
300
300
  * Licensed under the MIT License.
@@ -323,7 +323,7 @@
323
323
  return new AuthError(code, correlationId, additionalMessage || getDefaultErrorMessage$1(code));
324
324
  }
325
325
 
326
- /*! @azure/msal-common v16.14.2 2026-10-06 */
326
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
327
327
 
328
328
  /*
329
329
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -346,7 +346,7 @@
346
346
  return new ClientAuthError(errorCode, correlationId, additionalMessage);
347
347
  }
348
348
 
349
- /*! @azure/msal-common v16.14.2 2026-10-06 */
349
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
350
350
  /*
351
351
  * Copyright (c) Microsoft Corporation. All rights reserved.
352
352
  * Licensed under the MIT License.
@@ -384,7 +384,7 @@
384
384
  const resourceParameterRequired = "resource_parameter_required";
385
385
  const misplacedResourceParam = "misplaced_resource_parameter";
386
386
 
387
- /*! @azure/msal-common v16.14.2 2026-10-06 */
387
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
388
388
 
389
389
  /*
390
390
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -422,7 +422,7 @@
422
422
  };
423
423
  }
424
424
 
425
- /*! @azure/msal-common v16.14.2 2026-10-06 */
425
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
426
426
 
427
427
  /*
428
428
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -488,7 +488,7 @@
488
488
  return matches[2];
489
489
  }
490
490
 
491
- /*! @azure/msal-common v16.14.2 2026-10-06 */
491
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
492
492
 
493
493
  /*
494
494
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -576,7 +576,7 @@
576
576
  return updatedAccountInfo;
577
577
  }
578
578
 
579
- /*! @azure/msal-common v16.14.2 2026-10-06 */
579
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
580
580
  /*
581
581
  * Copyright (c) Microsoft Corporation. All rights reserved.
582
582
  * Licensed under the MIT License.
@@ -590,7 +590,7 @@
590
590
  Ciam: 3,
591
591
  };
592
592
 
593
- /*! @azure/msal-common v16.14.2 2026-10-06 */
593
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
594
594
  /*
595
595
  * Copyright (c) Microsoft Corporation. All rights reserved.
596
596
  * Licensed under the MIT License.
@@ -612,7 +612,7 @@
612
612
  return null;
613
613
  }
614
614
 
615
- /*! @azure/msal-common v16.14.2 2026-10-06 */
615
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
616
616
  /*
617
617
  * Copyright (c) Microsoft Corporation. All rights reserved.
618
618
  * Licensed under the MIT License.
@@ -636,7 +636,7 @@
636
636
  EAR: "EAR",
637
637
  };
638
638
 
639
- /*! @azure/msal-common v16.14.2 2026-10-06 */
639
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
640
640
  /**
641
641
  * Returns the AccountInfo interface for this account.
642
642
  * @internal
@@ -825,7 +825,7 @@
825
825
  entity.hasOwnProperty("authorityType"));
826
826
  }
827
827
 
828
- /*! @azure/msal-common v16.14.2 2026-10-06 */
828
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
829
829
  /*
830
830
  * Copyright (c) Microsoft Corporation. All rights reserved.
831
831
  * Licensed under the MIT License.
@@ -835,7 +835,7 @@
835
835
  */
836
836
  const unexpectedError = "unexpected_error";
837
837
 
838
- /*! @azure/msal-common v16.14.2 2026-10-06 */
838
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
839
839
 
840
840
  /*
841
841
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -855,7 +855,7 @@
855
855
  return new ClientConfigurationError(errorCode, correlationId);
856
856
  }
857
857
 
858
- /*! @azure/msal-common v16.14.2 2026-10-06 */
858
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
859
859
  /*
860
860
  * Copyright (c) Microsoft Corporation. All rights reserved.
861
861
  * Licensed under the MIT License.
@@ -886,7 +886,7 @@
886
886
  const invalidDpopNonce = "invalid_dpop_nonce";
887
887
  const dpopMissingResourceContext = "dpop_missing_resource_context";
888
888
 
889
- /*! @azure/msal-common v16.14.2 2026-10-06 */
889
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
890
890
  /*
891
891
  * Copyright (c) Microsoft Corporation. All rights reserved.
892
892
  * Licensed under the MIT License.
@@ -898,7 +898,7 @@
898
898
  response.hasOwnProperty("jwks_uri"));
899
899
  }
900
900
 
901
- /*! @azure/msal-common v16.14.2 2026-10-06 */
901
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
902
902
  /*
903
903
  * Copyright (c) Microsoft Corporation. All rights reserved.
904
904
  * Licensed under the MIT License.
@@ -978,7 +978,7 @@
978
978
  }
979
979
  }
980
980
 
981
- /*! @azure/msal-common v16.14.2 2026-10-06 */
981
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
982
982
 
983
983
  /*
984
984
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1136,7 +1136,7 @@
1136
1136
  }
1137
1137
  }
1138
1138
 
1139
- /*! @azure/msal-common v16.14.2 2026-10-06 */
1139
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
1140
1140
 
1141
1141
  /*
1142
1142
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1290,7 +1290,7 @@
1290
1290
  return null;
1291
1291
  }
1292
1292
 
1293
- /*! @azure/msal-common v16.14.2 2026-10-06 */
1293
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
1294
1294
  /*
1295
1295
  * Copyright (c) Microsoft Corporation. All rights reserved.
1296
1296
  * Licensed under the MIT License.
@@ -1299,7 +1299,7 @@
1299
1299
  // AzureCloudInstance is not specified.
1300
1300
  None: "none"};
1301
1301
 
1302
- /*! @azure/msal-common v16.14.2 2026-10-06 */
1302
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
1303
1303
  /*
1304
1304
  * Copyright (c) Microsoft Corporation. All rights reserved.
1305
1305
  * Licensed under the MIT License.
@@ -1309,7 +1309,7 @@
1309
1309
  response.hasOwnProperty("metadata"));
1310
1310
  }
1311
1311
 
1312
- /*! @azure/msal-common v16.14.2 2026-10-06 */
1312
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
1313
1313
  /*
1314
1314
  * Copyright (c) Microsoft Corporation. All rights reserved.
1315
1315
  * Licensed under the MIT License.
@@ -1319,7 +1319,7 @@
1319
1319
  response.hasOwnProperty("error_description"));
1320
1320
  }
1321
1321
 
1322
- /*! @azure/msal-common v16.14.2 2026-10-06 */
1322
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
1323
1323
  /*
1324
1324
  * Copyright (c) Microsoft Corporation. All rights reserved.
1325
1325
  * Licensed under the MIT License.
@@ -1390,7 +1390,7 @@
1390
1390
  const CacheManagerGetRefreshToken = "cacheManagerGetRefreshToken";
1391
1391
  const SetUserData = "setUserData";
1392
1392
 
1393
- /*! @azure/msal-common v16.14.2 2026-10-06 */
1393
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
1394
1394
  /*
1395
1395
  * Copyright (c) Microsoft Corporation. All rights reserved.
1396
1396
  * Licensed under the MIT License.
@@ -1483,7 +1483,7 @@
1483
1483
  };
1484
1484
  };
1485
1485
 
1486
- /*! @azure/msal-common v16.14.2 2026-10-06 */
1486
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
1487
1487
 
1488
1488
  /*
1489
1489
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1594,7 +1594,7 @@
1594
1594
  },
1595
1595
  };
1596
1596
 
1597
- /*! @azure/msal-common v16.14.2 2026-10-06 */
1597
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
1598
1598
  /*
1599
1599
  * Copyright (c) Microsoft Corporation. All rights reserved.
1600
1600
  * Licensed under the MIT License.
@@ -1659,7 +1659,7 @@
1659
1659
  return cachedAtSec > nowSeconds();
1660
1660
  }
1661
1661
 
1662
- /*! @azure/msal-common v16.14.2 2026-10-06 */
1662
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
1663
1663
 
1664
1664
  /*
1665
1665
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1946,7 +1946,7 @@
1946
1946
  return [...attributeTokens].sort().join(" ");
1947
1947
  }
1948
1948
 
1949
- /*! @azure/msal-common v16.14.2 2026-10-06 */
1949
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
1950
1950
 
1951
1951
  /*
1952
1952
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2914,7 +2914,7 @@
2914
2914
  };
2915
2915
  }
2916
2916
 
2917
- /*! @azure/msal-common v16.14.2 2026-10-06 */
2917
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
2918
2918
 
2919
2919
  /*
2920
2920
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2948,7 +2948,7 @@
2948
2948
  }
2949
2949
  }
2950
2950
 
2951
- /*! @azure/msal-common v16.14.2 2026-10-06 */
2951
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
2952
2952
 
2953
2953
  /*
2954
2954
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3144,7 +3144,7 @@
3144
3144
  }
3145
3145
  }
3146
3146
 
3147
- /*! @azure/msal-common v16.14.2 2026-10-06 */
3147
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
3148
3148
 
3149
3149
  /*
3150
3150
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3630,7 +3630,7 @@
3630
3630
  }
3631
3631
  }
3632
3632
 
3633
- /*! @azure/msal-common v16.14.2 2026-10-06 */
3633
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
3634
3634
 
3635
3635
  /*
3636
3636
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3752,7 +3752,7 @@
3752
3752
  }
3753
3753
  }
3754
3754
 
3755
- /*! @azure/msal-common v16.14.2 2026-10-06 */
3755
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
3756
3756
 
3757
3757
  /*
3758
3758
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3800,7 +3800,7 @@
3800
3800
  },
3801
3801
  };
3802
3802
 
3803
- /*! @azure/msal-common v16.14.2 2026-10-06 */
3803
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
3804
3804
 
3805
3805
  /*
3806
3806
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3823,7 +3823,7 @@
3823
3823
  },
3824
3824
  };
3825
3825
 
3826
- /*! @azure/msal-common v16.14.2 2026-10-06 */
3826
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
3827
3827
  /*
3828
3828
  * Copyright (c) Microsoft Corporation. All rights reserved.
3829
3829
  * Licensed under the MIT License.
@@ -4098,12 +4098,12 @@
4098
4098
  }
4099
4099
  }
4100
4100
 
4101
- /*! @azure/msal-common v16.14.2 2026-10-06 */
4101
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
4102
4102
  /* eslint-disable header/header */
4103
4103
  const name$1 = "@azure/msal-common";
4104
- const version$1 = "16.14.2";
4104
+ const version$1 = "16.14.3";
4105
4105
 
4106
- /*! @azure/msal-common v16.14.2 2026-10-06 */
4106
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
4107
4107
  /*
4108
4108
  * Copyright (c) Microsoft Corporation. All rights reserved.
4109
4109
  * Licensed under the MIT License.
@@ -4111,7 +4111,7 @@
4111
4111
  const cacheQuotaExceeded = "cache_quota_exceeded";
4112
4112
  const cacheErrorUnknown = "cache_error_unknown";
4113
4113
 
4114
- /*! @azure/msal-common v16.14.2 2026-10-06 */
4114
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
4115
4115
 
4116
4116
  /*
4117
4117
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4149,7 +4149,7 @@
4149
4149
  }
4150
4150
  }
4151
4151
 
4152
- /*! @azure/msal-common v16.14.2 2026-10-06 */
4152
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
4153
4153
 
4154
4154
  /*
4155
4155
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5336,7 +5336,7 @@
5336
5336
  }
5337
5337
  }
5338
5338
 
5339
- /*! @azure/msal-common v16.14.2 2026-10-06 */
5339
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
5340
5340
  /*
5341
5341
  * Copyright (c) Microsoft Corporation. All rights reserved.
5342
5342
  * Licensed under the MIT License.
@@ -5350,7 +5350,7 @@
5350
5350
  const PerformanceEventStatus = {
5351
5351
  InProgress: 1};
5352
5352
 
5353
- /*! @azure/msal-common v16.14.2 2026-10-06 */
5353
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
5354
5354
 
5355
5355
  /*
5356
5356
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5408,7 +5408,7 @@
5408
5408
  }
5409
5409
  }
5410
5410
 
5411
- /*! @azure/msal-common v16.14.2 2026-10-06 */
5411
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
5412
5412
 
5413
5413
  /*
5414
5414
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5506,7 +5506,7 @@
5506
5506
  return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
5507
5507
  }
5508
5508
 
5509
- /*! @azure/msal-common v16.14.2 2026-10-06 */
5509
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
5510
5510
  /*
5511
5511
  * Copyright (c) Microsoft Corporation. All rights reserved.
5512
5512
  * Licensed under the MIT License.
@@ -5533,7 +5533,7 @@
5533
5533
  }
5534
5534
  }
5535
5535
 
5536
- /*! @azure/msal-common v16.14.2 2026-10-06 */
5536
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
5537
5537
 
5538
5538
  /*
5539
5539
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5554,7 +5554,7 @@
5554
5554
  return new JoseHeaderError(code, correlationId);
5555
5555
  }
5556
5556
 
5557
- /*! @azure/msal-common v16.14.2 2026-10-06 */
5557
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
5558
5558
  /*
5559
5559
  * Copyright (c) Microsoft Corporation. All rights reserved.
5560
5560
  * Licensed under the MIT License.
@@ -5579,7 +5579,7 @@
5579
5579
  return Object.getPrototypeOf(value) === proto;
5580
5580
  }
5581
5581
 
5582
- /*! @azure/msal-common v16.14.2 2026-10-06 */
5582
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
5583
5583
  /*
5584
5584
  * Copyright (c) Microsoft Corporation. All rights reserved.
5585
5585
  * Licensed under the MIT License.
@@ -5589,7 +5589,7 @@
5589
5589
  const missingJwkError = "missing_jwk_error";
5590
5590
  const invalidJwkError = "invalid_jwk_error";
5591
5591
 
5592
- /*! @azure/msal-common v16.14.2 2026-10-06 */
5592
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
5593
5593
 
5594
5594
  /*
5595
5595
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5655,7 +5655,7 @@
5655
5655
  }
5656
5656
  }
5657
5657
 
5658
- /*! @azure/msal-common v16.14.2 2026-10-06 */
5658
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
5659
5659
 
5660
5660
  /*
5661
5661
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5756,7 +5756,7 @@
5756
5756
  }
5757
5757
  }
5758
5758
 
5759
- /*! @azure/msal-common v16.14.2 2026-10-06 */
5759
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
5760
5760
 
5761
5761
  /*
5762
5762
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5901,7 +5901,7 @@
5901
5901
  }
5902
5902
  }
5903
5903
 
5904
- /*! @azure/msal-common v16.14.2 2026-10-06 */
5904
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
5905
5905
  /*
5906
5906
  * Copyright (c) Microsoft Corporation. All rights reserved.
5907
5907
  * Licensed under the MIT License.
@@ -5952,7 +5952,7 @@
5952
5952
  */
5953
5953
  const interruptedUser = "interrupted_user";
5954
5954
 
5955
- /*! @azure/msal-common v16.14.2 2026-10-06 */
5955
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
5956
5956
 
5957
5957
  /*
5958
5958
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6019,7 +6019,7 @@
6019
6019
  return new InteractionRequiredAuthError(errorCode, correlationId, errorMessage);
6020
6020
  }
6021
6021
 
6022
- /*! @azure/msal-common v16.14.2 2026-10-06 */
6022
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
6023
6023
 
6024
6024
  /*
6025
6025
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6038,7 +6038,7 @@
6038
6038
  }
6039
6039
  }
6040
6040
 
6041
- /*! @azure/msal-common v16.14.2 2026-10-06 */
6041
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
6042
6042
 
6043
6043
  /*
6044
6044
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6109,7 +6109,7 @@
6109
6109
  }
6110
6110
  }
6111
6111
 
6112
- /*! @azure/msal-common v16.14.2 2026-10-06 */
6112
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
6113
6113
 
6114
6114
  /*
6115
6115
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6537,7 +6537,7 @@
6537
6537
  return baseAccount;
6538
6538
  }
6539
6539
 
6540
- /*! @azure/msal-common v16.14.2 2026-10-06 */
6540
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
6541
6541
  /*
6542
6542
  * Copyright (c) Microsoft Corporation. All rights reserved.
6543
6543
  * Licensed under the MIT License.
@@ -6547,7 +6547,7 @@
6547
6547
  UPN: "UPN",
6548
6548
  };
6549
6549
 
6550
- /*! @azure/msal-common v16.14.2 2026-10-06 */
6550
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
6551
6551
  /*
6552
6552
  * Copyright (c) Microsoft Corporation. All rights reserved.
6553
6553
  * Licensed under the MIT License.
@@ -6566,7 +6566,7 @@
6566
6566
  }
6567
6567
  }
6568
6568
 
6569
- /*! @azure/msal-common v16.14.2 2026-10-06 */
6569
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
6570
6570
 
6571
6571
  /*
6572
6572
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6590,7 +6590,7 @@
6590
6590
  };
6591
6591
  }
6592
6592
 
6593
- /*! @azure/msal-common v16.14.2 2026-10-06 */
6593
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
6594
6594
 
6595
6595
  /*
6596
6596
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6676,7 +6676,7 @@
6676
6676
  }
6677
6677
  }
6678
6678
 
6679
- /*! @azure/msal-common v16.14.2 2026-10-06 */
6679
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
6680
6680
 
6681
6681
  /*
6682
6682
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6707,7 +6707,7 @@
6707
6707
  return new NetworkError(error, httpStatus, responseHeaders);
6708
6708
  }
6709
6709
 
6710
- /*! @azure/msal-common v16.14.2 2026-10-06 */
6710
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
6711
6711
 
6712
6712
  /*
6713
6713
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6840,7 +6840,7 @@
6840
6840
  return response;
6841
6841
  }
6842
6842
 
6843
- /*! @azure/msal-common v16.14.2 2026-10-06 */
6843
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
6844
6844
 
6845
6845
  /*
6846
6846
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7104,7 +7104,7 @@
7104
7104
  }
7105
7105
  }
7106
7106
 
7107
- /*! @azure/msal-common v16.14.2 2026-10-06 */
7107
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
7108
7108
 
7109
7109
  /*
7110
7110
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7331,7 +7331,7 @@
7331
7331
  return account.loginHint || account.idTokenClaims?.login_hint || null;
7332
7332
  }
7333
7333
 
7334
- /*! @azure/msal-common v16.14.2 2026-10-06 */
7334
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
7335
7335
 
7336
7336
  /*
7337
7337
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7566,7 +7566,7 @@
7566
7566
  }
7567
7567
  }
7568
7568
 
7569
- /*! @azure/msal-common v16.14.2 2026-10-06 */
7569
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
7570
7570
 
7571
7571
  /*
7572
7572
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7859,7 +7859,7 @@
7859
7859
  clearNativeBrokerErrorCode() { }
7860
7860
  }
7861
7861
 
7862
- /*! @azure/msal-common v16.14.2 2026-10-06 */
7862
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
7863
7863
 
7864
7864
  /*
7865
7865
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7986,7 +7986,7 @@
7986
7986
  }
7987
7987
  }
7988
7988
 
7989
- /*! @azure/msal-common v16.14.2 2026-10-06 */
7989
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
7990
7990
 
7991
7991
  /*
7992
7992
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8002,7 +8002,7 @@
8002
8002
  },
8003
8003
  };
8004
8004
 
8005
- /*! @azure/msal-common v16.14.2 2026-10-06 */
8005
+ /*! @azure/msal-common v16.14.3 2026-10-21 */
8006
8006
 
8007
8007
  /*
8008
8008
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8157,13 +8157,14 @@
8157
8157
  * Custom Auth API error.
8158
8158
  */
8159
8159
  class CustomAuthApiError extends CustomAuthError {
8160
- constructor(error, errorDescription, correlationId, errorCodes, subError, attributes, continuationToken, traceId, timestamp, attributeValidationDetails) {
8160
+ constructor(error, errorDescription, correlationId, errorCodes, subError, attributes, continuationToken, traceId, timestamp, attributeValidationDetails, innerErrorCode) {
8161
8161
  super(error, errorDescription, correlationId, errorCodes, subError);
8162
8162
  this.attributes = attributes;
8163
8163
  this.continuationToken = continuationToken;
8164
8164
  this.traceId = traceId;
8165
8165
  this.timestamp = timestamp;
8166
8166
  this.attributeValidationDetails = attributeValidationDetails;
8167
+ this.innerErrorCode = innerErrorCode;
8167
8168
  Object.setPrototypeOf(this, CustomAuthApiError.prototype);
8168
8169
  }
8169
8170
  }
@@ -8205,7 +8206,7 @@
8205
8206
  const INVALID_TOKEN_TYPE = "invalid_token_type";
8206
8207
  const HTTP_REQUEST_FAILED$1 = "http_request_failed";
8207
8208
  const INVALID_REQUEST = "invalid_request";
8208
- const USER_NOT_FOUND = "user_not_found";
8209
+ const USER_NOT_FOUND$1 = "user_not_found";
8209
8210
  const INVALID_GRANT = "invalid_grant";
8210
8211
  const CREDENTIAL_REQUIRED = "credential_required";
8211
8212
  const ATTRIBUTES_REQUIRED = "attributes_required";
@@ -8245,7 +8246,7 @@
8245
8246
  this.errorData = errorData;
8246
8247
  }
8247
8248
  isUserNotFoundError() {
8248
- return this.errorData.error === USER_NOT_FOUND;
8249
+ return this.errorData.error === USER_NOT_FOUND$1;
8249
8250
  }
8250
8251
  isUserInvalidError() {
8251
8252
  return ((this.errorData instanceof InvalidArgumentError &&
@@ -8427,11 +8428,17 @@
8427
8428
  }
8428
8429
  throw e; // Rethrow unexpected errors
8429
8430
  }
8431
+ }
8432
+ function ensureArgumentIsStringArray(argName, argValue, correlationId) {
8433
+ if (!Array.isArray(argValue) ||
8434
+ !argValue.every((value) => typeof value === "string")) {
8435
+ throw new InvalidArgumentError(argName, correlationId);
8436
+ }
8430
8437
  }
8431
8438
 
8432
8439
  /* eslint-disable header/header */
8433
8440
  const name = "@azure/msal-browser";
8434
- const version = "5.25.0";
8441
+ const version = "5.26.0";
8435
8442
 
8436
8443
  /*
8437
8444
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8641,7 +8648,7 @@
8641
8648
  * @returns true if the error is due to the user not being found, false otherwise.
8642
8649
  */
8643
8650
  isUserNotFound() {
8644
- return this.errorData.error === USER_NOT_FOUND;
8651
+ return this.errorData.error === USER_NOT_FOUND$1;
8645
8652
  }
8646
8653
  /**
8647
8654
  * Checks if the error is due to the username being invalid.
@@ -12149,7 +12156,7 @@
12149
12156
  * Licensed under the MIT License.
12150
12157
  */
12151
12158
  const HTTP_REQUEST_FAILED = "http_request_failed";
12152
- const REDIRECT_TO_WEB = "redirect_to_web";
12159
+ const WEB_REDIRECT_REQUIRED = "web_redirect_required";
12153
12160
  const UNEXPECTED_ERROR = "unexpected_error";
12154
12161
  const AUTH_CODE_MISSING = "authorization_code_missing";
12155
12162
  const INVALID_TOKEN_RESPONSE = "invalid_token_response";
@@ -12201,6 +12208,7 @@
12201
12208
  code: readString(response.error) ?? UNEXPECTED_ERROR,
12202
12209
  message: readString(response.error_description),
12203
12210
  errorCodes: readNumberArray(response.error_codes),
12211
+ subError: readString(response.suberror),
12204
12212
  correlationId: readString(response.correlation_id),
12205
12213
  traceId: readString(response.trace_id),
12206
12214
  timestamp: readString(response.timestamp),
@@ -12216,32 +12224,6 @@
12216
12224
  return undefined;
12217
12225
  }
12218
12226
 
12219
- /*
12220
- * Copyright (c) Microsoft Corporation. All rights reserved.
12221
- * Licensed under the MIT License.
12222
- */
12223
- // Content type used by V2 JSON `/api` requests.
12224
- const JSON_CONTENT_TYPE = "application/json";
12225
- // Server action returned after successful credential verification.
12226
- const UPDATE_RELATION = "update";
12227
- const CHALLENGE_RELATION = "challenge";
12228
- const VERIFY_RELATION = "verify";
12229
- const RISK_VERIFY_RELATION = "riskverify";
12230
- const COLLECT_ATTRIBUTES_RELATION = "collectAttributes";
12231
- const AuthenticationMethodTypeV2 = {
12232
- EMAIL: "email",
12233
- PASSWORD: "password",
12234
- SMS: "sms",
12235
- };
12236
- /*
12237
- * Known `state` values on a HAL response. Kept open (the body field is typed as string) because
12238
- * the server may introduce new values; response parsing and flow logic branch on these constants.
12239
- */
12240
- const ResponseStateV2 = {
12241
- CONTINUE: "continue",
12242
- WEB_FALLBACK_REQUIRED: "webFallbackRequired",
12243
- };
12244
-
12245
12227
  /*
12246
12228
  * Copyright (c) Microsoft Corporation. All rights reserved.
12247
12229
  * Licensed under the MIT License.
@@ -12262,17 +12244,14 @@
12262
12244
  const correlationId = response.headers.get(HttpHeaderKeys.X_MS_REQUEST_ID) ??
12263
12245
  requestCorrelationId;
12264
12246
  const json = await this.parseBody(response, correlationId);
12265
- const state = typeof json.state === "string" ? json.state : undefined;
12266
12247
  const continuationToken = (typeof json.continuationToken === "string"
12267
12248
  ? json.continuationToken
12268
12249
  : undefined) ??
12269
12250
  (typeof json.continuation_token === "string"
12270
12251
  ? json.continuation_token
12271
12252
  : undefined);
12272
- const flatError = typeof json.error === "string" ? json.error : undefined;
12273
- const isWebFallbackRequired = flatError === REDIRECT_TO_WEB ||
12274
- state === ResponseStateV2.WEB_FALLBACK_REQUIRED;
12275
12253
  const error = normalizeServerErrorV2(json);
12254
+ const isWebFallbackRequired = error?.subError === WEB_REDIRECT_REQUIRED;
12276
12255
  // Surface the header correlation id on the body (HalResponseBaseV2.correlationId).
12277
12256
  json.correlationId = correlationId;
12278
12257
  return {
@@ -12388,6 +12367,31 @@
12388
12367
  return path.startsWith("/") ? path : `/${path}`;
12389
12368
  }
12390
12369
 
12370
+ /*
12371
+ * Copyright (c) Microsoft Corporation. All rights reserved.
12372
+ * Licensed under the MIT License.
12373
+ */
12374
+ // Content type used by V2 JSON `/api` requests.
12375
+ const JSON_CONTENT_TYPE = "application/json";
12376
+ // Server action returned after successful credential verification.
12377
+ const UPDATE_RELATION = "update";
12378
+ const CHALLENGE_RELATION = "challenge";
12379
+ const VERIFY_RELATION = "verify";
12380
+ const RISK_VERIFY_RELATION = "riskverify";
12381
+ const COLLECT_ATTRIBUTES_RELATION = "collectAttributes";
12382
+ const AuthenticationMethodTypeV2 = {
12383
+ EMAIL: "email",
12384
+ PASSWORD: "password",
12385
+ SMS: "sms",
12386
+ };
12387
+ /*
12388
+ * Known `state` values on a HAL response. Kept open (the body field is typed as string) because
12389
+ * the server may introduce new values; response parsing and flow logic branch on these constants.
12390
+ */
12391
+ const ResponseStateV2 = {
12392
+ CONTINUE: "continue",
12393
+ };
12394
+
12391
12395
  /*
12392
12396
  * Copyright (c) Microsoft Corporation. All rights reserved.
12393
12397
  * Licensed under the MIT License.
@@ -12430,13 +12434,16 @@
12430
12434
  /*
12431
12435
  * Starts authorization and returns the initial continuation token and flow links.
12432
12436
  */
12433
- async authorizeChallengeStart(context, scopes) {
12437
+ async authorizeChallengeStart(context, scopes, claims) {
12434
12438
  const request = {
12435
12439
  client_id: this.clientId,
12436
12440
  };
12437
12441
  if (scopes?.length) {
12438
12442
  request.scope = scopes.join(" ");
12439
12443
  }
12444
+ if (claims) {
12445
+ request.claims = claims;
12446
+ }
12440
12447
  const parsedResponse = await this.postOAuthForm(AUTHORIZE_CHALLENGE, request, context);
12441
12448
  const { continuationToken, correlationId, error, body } = parsedResponse;
12442
12449
  /*
@@ -12463,7 +12470,7 @@
12463
12470
  */
12464
12471
  async completeWithTokens(request, context) {
12465
12472
  const code = await this.authorizeChallengeContinue(request.continuationToken, context);
12466
- return this.token(code, request.scopes, context);
12473
+ return this.token(code, context);
12467
12474
  }
12468
12475
  /*
12469
12476
  * Redeems a continuation token for an authorization code.
@@ -12484,7 +12491,7 @@
12484
12491
  /*
12485
12492
  * Exchanges an authorization code for tokens.
12486
12493
  */
12487
- async token(code, scopes, context) {
12494
+ async token(code, context) {
12488
12495
  const request = {
12489
12496
  client_id: this.clientId,
12490
12497
  grant_type: GrantType$1.AUTHORIZATION_CODE_GRANT,
@@ -12492,9 +12499,6 @@
12492
12499
  // Required so the server returns the client_info blob MSAL uses to build the home account id.
12493
12500
  client_info: "1",
12494
12501
  };
12495
- if (scopes.length > 0) {
12496
- request.scope = scopes.join(" ");
12497
- }
12498
12502
  const parsedResponse = await this.postOAuthForm(SIGNIN_TOKEN, request, context);
12499
12503
  this.throwOnApiError(parsedResponse);
12500
12504
  this.ensureTokenResponseIsValid(parsedResponse.body, parsedResponse.correlationId);
@@ -12547,11 +12551,13 @@
12547
12551
  }
12548
12552
  }
12549
12553
  toApiError(serverError, correlationId) {
12550
- return new CustomAuthApiError(serverError.code, serverError.message ?? "", serverError.correlationId ?? correlationId, serverError.errorCodes, serverError.innerErrorCode, undefined, undefined, serverError.traceId, serverError.timestamp, serverError.attributeValidationDetails);
12554
+ return new CustomAuthApiError(serverError.code, serverError.message ?? "", serverError.correlationId ?? correlationId, serverError.errorCodes, serverError.subError, undefined, undefined, serverError.traceId, serverError.timestamp, serverError.attributeValidationDetails, serverError.innerErrorCode);
12551
12555
  }
12552
12556
  throwOnWebFallback(parsedResponse) {
12553
12557
  if (parsedResponse.isWebFallbackRequired) {
12554
- throw new CustomAuthApiError(REDIRECT_TO_WEB, "The server requires the flow to continue in a web browser", parsedResponse.correlationId);
12558
+ if (parsedResponse.error?.subError === WEB_REDIRECT_REQUIRED) {
12559
+ throw this.toApiError(parsedResponse.error, parsedResponse.correlationId);
12560
+ }
12555
12561
  }
12556
12562
  }
12557
12563
  ensureTokenResponseIsValid(tokenResponse, correlationId) {
@@ -12879,13 +12885,16 @@
12879
12885
  ...defaultScopes.filter((scope) => !seenScopes.has(scope.toLowerCase())),
12880
12886
  ];
12881
12887
  }
12882
- async handleTokenResponse(tokenResponse, requestScopes, correlationId, apiId) {
12888
+ async handleTokenResponse(tokenResponse, requestedScopes, correlationId, apiId) {
12883
12889
  this.logger.verbose("Processing V2 token response.", correlationId);
12884
12890
  const requestTimestamp = Math.round(new Date().getTime() / 1000.0);
12891
+ const responseScopes = tokenResponse.scope
12892
+ ? tokenResponse.scope.split(" ").filter((scope) => !!scope)
12893
+ : requestedScopes;
12885
12894
  const result = await this.tokenResponseHandler.handleServerTokenResponse(tokenResponse, this.customAuthAuthority, requestTimestamp, {
12886
12895
  authority: this.customAuthAuthority.canonicalAuthority,
12887
12896
  correlationId,
12888
- scopes: requestScopes,
12897
+ scopes: responseScopes,
12889
12898
  }, apiId);
12890
12899
  return result;
12891
12900
  }
@@ -13009,13 +13018,15 @@
13009
13018
  this.apiClient = apiClient;
13010
13019
  }
13011
13020
  /*
13012
- * Starts sign-in using the preferred supported method offered by the server.
13021
+ * Starts sign-in by automatically using a sole supported method or returning
13022
+ * multiple supported methods for user selection.
13013
13023
  */
13014
13024
  async signIn(parameters) {
13015
13025
  const correlationId = parameters.correlationId;
13016
13026
  const context = this.createRequestContext(SIGN_IN_V2_START, correlationId);
13017
13027
  this.logger.verbose("Starting V2 sign-in.", correlationId);
13018
- const entryResult = await this.apiClient.authorizeChallengeStart(context);
13028
+ const scopes = this.getScopes(parameters.scopes);
13029
+ const entryResult = await this.apiClient.authorizeChallengeStart(context, scopes, parameters.claims);
13019
13030
  const startResult = await this.apiClient.signInStart(this.requireLink(correlationId, entryResult.signInHref, {
13020
13031
  code: SIGN_IN_UNSUPPORTED,
13021
13032
  message: "The authorize-challenge entry response did not include a sign-in link.",
@@ -13027,10 +13038,8 @@
13027
13038
  const continuationState = {
13028
13039
  continuationToken: startResult.continuationToken,
13029
13040
  scenario: CustomAuthFlowScenarioV2.SignIn,
13041
+ scopes,
13030
13042
  links: {},
13031
- tokenRequest: {
13032
- scopes: parameters.scopes,
13033
- },
13034
13043
  };
13035
13044
  const methods = startResult.methods.map((method) => ({
13036
13045
  id: method.id,
@@ -13038,7 +13047,15 @@
13038
13047
  hint: method.hint,
13039
13048
  challengeHref: method.challengeHref,
13040
13049
  }));
13041
- const selectedMethod = this.selectSignInMethod(methods, parameters.password !== undefined, correlationId);
13050
+ const supportedMethods = this.getSupportedSignInMethods(methods, correlationId);
13051
+ if (supportedMethods.length > 1) {
13052
+ return createFlowMethodSelectionRequiredResultV2({
13053
+ correlationId,
13054
+ continuationState,
13055
+ methods: supportedMethods,
13056
+ });
13057
+ }
13058
+ const selectedMethod = supportedMethods[0];
13042
13059
  const challengeResult = await this.requestChallenge({
13043
13060
  correlationId,
13044
13061
  continuationState: {
@@ -13071,7 +13088,8 @@
13071
13088
  const correlationId = parameters.correlationId;
13072
13089
  const context = this.createRequestContext(SIGN_UP_V2_START, correlationId);
13073
13090
  this.logger.verbose("Starting V2 sign-up.", correlationId);
13074
- const entryResult = await this.apiClient.authorizeChallengeStart(context, parameters.scopes);
13091
+ const scopes = this.getScopes(parameters.scopes);
13092
+ const entryResult = await this.apiClient.authorizeChallengeStart(context, scopes, parameters.claims);
13075
13093
  const startResult = await this.apiClient.signUpStart(this.requireLink(correlationId, entryResult.signUpHref, {
13076
13094
  code: SIGN_UP_UNSUPPORTED,
13077
13095
  message: "The authorize-challenge entry response did not include a sign-up link.",
@@ -13091,10 +13109,8 @@
13091
13109
  const continuationState = {
13092
13110
  continuationToken: startResult.continuationToken,
13093
13111
  scenario: CustomAuthFlowScenarioV2.SignUp,
13112
+ scopes,
13094
13113
  links: {},
13095
- tokenRequest: {
13096
- scopes: parameters.scopes,
13097
- },
13098
13114
  signUp: {
13099
13115
  passwordWasSupplied: attributes.password !== undefined,
13100
13116
  },
@@ -13115,7 +13131,8 @@
13115
13131
  const correlationId = parameters.correlationId;
13116
13132
  const context = this.createRequestContext(RESET_PASSWORD_V2_START, correlationId);
13117
13133
  this.logger.verbose("Starting V2 self-service password reset.", correlationId);
13118
- const entryResult = await this.apiClient.authorizeChallengeStart(context);
13134
+ const scopes = this.getScopes(parameters.scopes);
13135
+ const entryResult = await this.apiClient.authorizeChallengeStart(context, scopes, parameters.claims);
13119
13136
  const startResult = await this.apiClient.resetPasswordStart(this.requireLink(correlationId, entryResult.resetPasswordHref, {
13120
13137
  code: RESET_PASSWORD_UNSUPPORTED,
13121
13138
  message: "The authorize-challenge entry response did not include a reset-password link.",
@@ -13127,6 +13144,7 @@
13127
13144
  const continuationState = {
13128
13145
  continuationToken: startResult.continuationToken,
13129
13146
  scenario: CustomAuthFlowScenarioV2.PasswordReset,
13147
+ scopes,
13130
13148
  links: {},
13131
13149
  };
13132
13150
  const methods = startResult.methods.map((method) => ({
@@ -13181,21 +13199,30 @@
13181
13199
  */
13182
13200
  async requestChallenge(parameters) {
13183
13201
  const challengeResult = await this.sendMethodChallenge(parameters, "requestChallenge");
13184
- const challengeType = challengeResult.type ?? AuthenticationMethodTypeV2.EMAIL;
13202
+ const challengeType = challengeResult.type;
13203
+ const normalizedChallengeType = challengeType?.toLowerCase();
13185
13204
  const continuationState = this.createChallengeContinuationState(parameters.continuationState, challengeResult);
13186
- if (challengeType.toLowerCase() === AuthenticationMethodTypeV2.PASSWORD) {
13205
+ if (normalizedChallengeType === AuthenticationMethodTypeV2.PASSWORD) {
13187
13206
  return createFlowPasswordRequiredResultV2({
13188
13207
  correlationId: parameters.correlationId,
13189
13208
  continuationState,
13190
13209
  });
13191
13210
  }
13192
- return createFlowCodeRequiredResultV2({
13193
- correlationId: parameters.correlationId,
13194
- continuationState,
13195
- channel: challengeType,
13196
- sentTo: challengeResult.hint,
13197
- codeLength: challengeResult.codeLength,
13198
- });
13211
+ if (normalizedChallengeType === AuthenticationMethodTypeV2.EMAIL ||
13212
+ normalizedChallengeType === AuthenticationMethodTypeV2.SMS) {
13213
+ return createFlowCodeRequiredResultV2({
13214
+ correlationId: parameters.correlationId,
13215
+ continuationState,
13216
+ channel: challengeType,
13217
+ sentTo: challengeResult.hint,
13218
+ codeLength: challengeResult.codeLength,
13219
+ });
13220
+ }
13221
+ const message = challengeType
13222
+ ? `Challenge type '${challengeType}' is not supported.`
13223
+ : "Challenge type is missing.";
13224
+ this.logger.error(message, parameters.correlationId);
13225
+ throw new CustomAuthError(UNSUPPORTED_FLOW_TRANSITION, message, parameters.correlationId);
13199
13226
  }
13200
13227
  /*
13201
13228
  * Verifies the submitted one-time code using the server-provided link. The
@@ -13220,6 +13247,7 @@
13220
13247
  continuationState: {
13221
13248
  continuationToken: verifyResult.continuationToken,
13222
13249
  scenario: continuationState.scenario,
13250
+ scopes: continuationState.scopes,
13223
13251
  links: { update: verifyResult.updateHref },
13224
13252
  },
13225
13253
  });
@@ -13234,10 +13262,10 @@
13234
13262
  const nextContinuationState = {
13235
13263
  continuationToken: verifyResult.continuationToken,
13236
13264
  scenario: continuationState.scenario,
13265
+ scopes: continuationState.scopes,
13237
13266
  links: {
13238
13267
  submitAttributes: verifyResult.submitAttributesHref,
13239
13268
  },
13240
- tokenRequest: continuationState.tokenRequest,
13241
13269
  signUp: continuationState.signUp,
13242
13270
  };
13243
13271
  const attributes = verifyResult.attributes.filter((attribute) => attribute.attributeId.toLowerCase() !== "password");
@@ -13263,8 +13291,8 @@
13263
13291
  continuationState: {
13264
13292
  continuationToken: verifyResult.continuationToken,
13265
13293
  scenario: continuationState.scenario,
13294
+ scopes: continuationState.scopes,
13266
13295
  links: {},
13267
- tokenRequest: continuationState.tokenRequest,
13268
13296
  },
13269
13297
  });
13270
13298
  }
@@ -13341,6 +13369,7 @@
13341
13369
  continuationState: {
13342
13370
  continuationToken: completionToken,
13343
13371
  scenario: continuationState.scenario,
13372
+ scopes: continuationState.scopes,
13344
13373
  links: {},
13345
13374
  },
13346
13375
  });
@@ -13362,12 +13391,10 @@
13362
13391
  const apiId = this.resolveStepApiId(continuationState.scenario, "signInWithContinuation", correlationId);
13363
13392
  const context = this.createRequestContext(apiId, correlationId);
13364
13393
  this.logger.verbose("Signing in with a V2 continuation.", correlationId);
13365
- const scopes = this.getScopes(parameters.scopes);
13366
13394
  const tokenResponse = await this.apiClient.completeWithTokens({
13367
13395
  continuationToken: continuationState.continuationToken,
13368
- scopes,
13369
13396
  }, context);
13370
- const authenticationResult = await this.handleTokenResponse(tokenResponse, scopes, correlationId, apiId);
13397
+ const authenticationResult = await this.handleTokenResponse(tokenResponse, continuationState.scopes, correlationId, apiId);
13371
13398
  this.logger.verbose("V2 continuation sign-in completed.", correlationId);
13372
13399
  return createFlowCompletedResultV2({
13373
13400
  correlationId,
@@ -13382,8 +13409,8 @@
13382
13409
  continuationState: {
13383
13410
  continuationToken: verifyResult.continuationToken,
13384
13411
  scenario: continuationState.scenario,
13412
+ scopes: continuationState.scopes,
13385
13413
  links: {},
13386
- tokenRequest: continuationState.tokenRequest,
13387
13414
  },
13388
13415
  methods: verifyResult.methods.map((method) => ({
13389
13416
  id: method.id,
@@ -13400,23 +13427,17 @@
13400
13427
  this.logger.error(message, correlationId);
13401
13428
  throw new CustomAuthError(UNSUPPORTED_FLOW_TRANSITION, message, correlationId);
13402
13429
  }
13403
- selectSignInMethod(methods, passwordProvided, correlationId) {
13404
- const passwordMethod = methods.find((method) => method.type.toLowerCase() ===
13405
- AuthenticationMethodTypeV2.PASSWORD);
13406
- const emailMethod = methods.find((method) => method.type.toLowerCase() === AuthenticationMethodTypeV2.EMAIL);
13407
- if (passwordProvided) {
13408
- if (passwordMethod) {
13409
- return passwordMethod;
13410
- }
13411
- const message = "A password was supplied, but the sign-in response did not include a password method.";
13412
- this.logger.error(message, correlationId);
13413
- throw new CustomAuthError(UNSUPPORTED_FLOW_TRANSITION, message, correlationId);
13414
- }
13415
- const selectedMethod = emailMethod ?? passwordMethod;
13416
- if (selectedMethod) {
13417
- return selectedMethod;
13430
+ getSupportedSignInMethods(methods, correlationId) {
13431
+ const supportedMethods = methods.filter((method) => {
13432
+ const methodType = method.type.toLowerCase();
13433
+ return (methodType === AuthenticationMethodTypeV2.EMAIL ||
13434
+ methodType === AuthenticationMethodTypeV2.PASSWORD ||
13435
+ methodType === AuthenticationMethodTypeV2.SMS);
13436
+ });
13437
+ if (supportedMethods.length > 0) {
13438
+ return supportedMethods;
13418
13439
  }
13419
- const message = "The sign-in start response did not include a supported email or password method.";
13440
+ const message = "The sign-in start response did not include a supported email, SMS, or password method.";
13420
13441
  this.logger.error(message, correlationId);
13421
13442
  throw new CustomAuthError(UNSUPPORTED_FLOW_TRANSITION, message, correlationId);
13422
13443
  }
@@ -13428,11 +13449,11 @@
13428
13449
  continuationState: {
13429
13450
  continuationToken: result.continuationToken,
13430
13451
  scenario: continuationState.scenario,
13452
+ scopes: continuationState.scopes,
13431
13453
  links: {
13432
13454
  verify: result.verifyHref,
13433
13455
  resend: result.resendHref,
13434
13456
  },
13435
- tokenRequest: continuationState.tokenRequest,
13436
13457
  signUp: continuationState.signUp,
13437
13458
  },
13438
13459
  channel: result.type,
@@ -13447,10 +13468,10 @@
13447
13468
  const nextContinuationState = {
13448
13469
  continuationToken: result.continuationToken,
13449
13470
  scenario: continuationState.scenario,
13471
+ scopes: continuationState.scopes,
13450
13472
  links: {
13451
13473
  submitAttributes: result.submitAttributesHref,
13452
13474
  },
13453
- tokenRequest: continuationState.tokenRequest,
13454
13475
  signUp: continuationState.signUp,
13455
13476
  };
13456
13477
  const attributes = result.attributes.filter((attribute) => attribute.attributeId.toLowerCase() !== "password");
@@ -13475,8 +13496,8 @@
13475
13496
  continuationState: {
13476
13497
  continuationToken: result.continuationToken,
13477
13498
  scenario: continuationState.scenario,
13499
+ scopes: continuationState.scopes,
13478
13500
  links: {},
13479
- tokenRequest: continuationState.tokenRequest,
13480
13501
  },
13481
13502
  });
13482
13503
  }
@@ -13507,10 +13528,9 @@
13507
13528
  continuationState: {
13508
13529
  continuationToken,
13509
13530
  scenario: continuationState.scenario,
13531
+ scopes: continuationState.scopes,
13510
13532
  links: {},
13511
- tokenRequest: continuationState.tokenRequest,
13512
13533
  },
13513
- scopes: continuationState.tokenRequest?.scopes,
13514
13534
  });
13515
13535
  }
13516
13536
  async sendMethodChallenge(parameters, step) {
@@ -13539,15 +13559,13 @@
13539
13559
  return {
13540
13560
  continuationToken: challengeResult.continuationToken,
13541
13561
  scenario: continuationState.scenario,
13562
+ scopes: continuationState.scopes,
13542
13563
  links: {
13543
13564
  challenge: continuationState.links.challenge,
13544
13565
  verify: challengeResult.verifyHref,
13545
13566
  resend: challengeResult.resendHref ??
13546
13567
  continuationState.links.resend,
13547
13568
  },
13548
- ...(continuationState.tokenRequest && {
13549
- tokenRequest: continuationState.tokenRequest,
13550
- }),
13551
13569
  ...(continuationState.signUp && {
13552
13570
  signUp: continuationState.signUp,
13553
13571
  }),
@@ -13590,93 +13608,24 @@
13590
13608
  }
13591
13609
  }
13592
13610
 
13593
- /*
13594
- * Copyright (c) Microsoft Corporation. All rights reserved.
13595
- * Licensed under the MIT License.
13596
- */
13597
- /**
13598
- * Result of a native auth V2 operation. Use {@link CustomAuthResultV2.isState}
13599
- * to narrow the state before accessing its members.
13600
- */
13601
- class CustomAuthResultV2 {
13602
- constructor(state, data, scenario = CustomAuthFlowScenarioV2.Unknown) {
13603
- this.state = state;
13604
- this.data = data;
13605
- this.scenario = scenario;
13606
- }
13607
- /**
13608
- * Narrows the result to a specific state by its `stateType` discriminator.
13609
- * A successful match makes the state's properties available without a cast.
13610
- * @param stateType - The state type to test for.
13611
- * @returns True (and narrows `state`) when the current state matches `stateType`.
13612
- */
13613
- isState(stateType) {
13614
- return this.state.stateType === stateType;
13615
- }
13616
- /**
13617
- * Checks whether the result is in the terminal failed state. A failed result
13618
- * contains the flow-specific error.
13619
- * @returns True (and narrows `state`) when the operation failed.
13620
- */
13621
- isFailed() {
13622
- return this.state.stateType === "failed";
13623
- }
13624
- /**
13625
- * Creates a failed result from the supplied error. The result uses the
13626
- * shared {@link FailedStateV2} terminal state.
13627
- * @param error - The error that occurred.
13628
- * @param options - The flow-error type and error context.
13629
- * @returns A failed result carrying the flow-specific error.
13630
- */
13631
- static createWithError(error, options) {
13632
- const { errorType: ErrorType, scenario = CustomAuthFlowScenarioV2.Unknown, correlationId, } = options;
13633
- const errorData = CustomAuthResultV2.createErrorData(error, correlationId);
13634
- const flowError = new ErrorType(errorData, scenario);
13635
- const result = new CustomAuthResultV2(new FailedStateV2(), undefined, scenario);
13636
- result.error = flowError;
13637
- return result;
13638
- }
13639
- static createErrorData(error, correlationId) {
13640
- if (error instanceof CustomAuthError) {
13641
- return error;
13642
- }
13643
- if (error instanceof AuthError) {
13644
- const errorCodes = [];
13645
- if ("errorNo" in error) {
13646
- if (typeof error.errorNo === "string") {
13647
- const code = Number(error.errorNo);
13648
- if (!isNaN(code)) {
13649
- errorCodes.push(code);
13650
- }
13651
- }
13652
- else if (typeof error.errorNo === "number") {
13653
- errorCodes.push(error.errorNo);
13654
- }
13655
- }
13656
- return new MsalCustomAuthError(error.errorCode, error.errorMessage, error.subError, errorCodes, error.correlationId);
13657
- }
13658
- return new UnexpectedError(error, correlationId);
13659
- }
13660
- }
13661
-
13662
13611
  /*
13663
13612
  * Copyright (c) Microsoft Corporation. All rights reserved.
13664
13613
  * Licensed under the MIT License.
13665
13614
  */
13666
13615
  const INVALID_ONE_TIME_CODE = "invalidOneTimeCode";
13667
13616
  const INVALID_USERNAME_OR_PASSWORD = "invalidUserNameOrPassword";
13668
- const PASSWORD_TOO_WEAK = "passwordTooWeak";
13617
+ const PASSWORD_TOO_WEAK = "passwordTooWeak";
13618
+ const USER_NOT_FOUND = "userNotFound";
13669
13619
 
13670
13620
  /*
13671
13621
  * Copyright (c) Microsoft Corporation. All rights reserved.
13672
13622
  * Licensed under the MIT License.
13673
13623
  */
13674
- /*
13675
- * Standalone V2 error base; intentionally does NOT extend the V1 AuthFlowErrorBase.
13676
- * Provides the detectors common to every V2 flow; each per-action subclass adds only
13677
- * the detectors relevant to its own action.
13624
+ /**
13625
+ * Error returned by a native authentication V2 operation. Use its classifiers
13626
+ * to handle known failures while retaining raw diagnostics through `errorData`.
13678
13627
  */
13679
- class AuthFlowErrorBaseV2 {
13628
+ class AuthFlowErrorV2 {
13680
13629
  constructor(errorData, scenario = CustomAuthFlowScenarioV2.Unknown) {
13681
13630
  this.errorData = errorData;
13682
13631
  this.scenario = scenario;
@@ -13690,14 +13639,32 @@
13690
13639
  get errorDescription() {
13691
13640
  return this.errorData.errorDescription;
13692
13641
  }
13642
+ get innerErrorCode() {
13643
+ return this.errorData instanceof CustomAuthApiError
13644
+ ? this.errorData.innerErrorCode
13645
+ : undefined;
13646
+ }
13647
+ /**
13648
+ * Gets the attribute ids that the service reports as required.
13649
+ */
13650
+ get requiredAttributes() {
13651
+ return this.getAttributeIdsByCode("attributeRequired");
13652
+ }
13653
+ /**
13654
+ * Gets the attribute ids whose submitted values failed validation.
13655
+ */
13656
+ get invalidAttributes() {
13657
+ return this.getAttributeIdsByCode("attributeValidationFailed");
13658
+ }
13693
13659
  /**
13694
13660
  * Checks if the error requires the flow to continue in the browser. The
13695
- * server surfaces this as a `redirect_to_web` failure, so a browser hand-off
13696
- * always arrives as a `FailedStateV2` on which this detector returns true.
13661
+ * server surfaces this as the `web_redirect_required` OAuth suberror, so a
13662
+ * browser hand-off arrives as a `FailedStateV2` on which this detector
13663
+ * returns true.
13697
13664
  * @returns True if the browser is required, false otherwise.
13698
13665
  */
13699
13666
  isBrowserRequired() {
13700
- return this.errorData.error === REDIRECT_TO_WEB;
13667
+ return this.errorData.subError === WEB_REDIRECT_REQUIRED;
13701
13668
  }
13702
13669
  /**
13703
13670
  * Checks if the error is due to a caller-supplied argument failing
@@ -13709,6 +13676,47 @@
13709
13676
  isInvalidInput() {
13710
13677
  return this.errorData instanceof InvalidArgumentError;
13711
13678
  }
13679
+ /**
13680
+ * Checks whether the service rejected the username parameter. Use it to ask
13681
+ * the user to correct the supplied username.
13682
+ * @returns True when the username is invalid, otherwise false.
13683
+ */
13684
+ isInvalidUsername() {
13685
+ return this.isUserInvalidError();
13686
+ }
13687
+ /**
13688
+ * Checks whether the supplied username does not identify an account. Use it
13689
+ * to distinguish a missing account from other request failures.
13690
+ * @returns True when the service reports that the user was not found.
13691
+ */
13692
+ isUserNotFound() {
13693
+ return this.isUserNotFoundError();
13694
+ }
13695
+ /**
13696
+ * Checks whether the service rejected the supplied sign-in credentials. This
13697
+ * classifier does not identify new-password policy failures.
13698
+ * @returns True when the username or password is incorrect.
13699
+ */
13700
+ isInvalidCredentials() {
13701
+ return this.isPasswordIncorrectError();
13702
+ }
13703
+ /**
13704
+ * Checks whether the service rejected a one-time code. Use it to prompt the
13705
+ * user to re-enter the code or request a new one.
13706
+ * @returns True when the one-time code is invalid, otherwise false.
13707
+ */
13708
+ isInvalidCode() {
13709
+ return this.isInvalidCodeError();
13710
+ }
13711
+ /**
13712
+ * Checks whether a new password violates password policy. It recognizes
13713
+ * both weak-password responses and password-targeted validation details.
13714
+ * @returns True when the new password is invalid, otherwise false.
13715
+ */
13716
+ isInvalidPassword() {
13717
+ return (this.isInvalidPasswordError() ||
13718
+ this.isPasswordPolicyViolationError());
13719
+ }
13712
13720
  /**
13713
13721
  * Checks whether an account already exists for the supplied identifier.
13714
13722
  * This can occur at different stages while completing sign-up.
@@ -13717,15 +13725,19 @@
13717
13725
  isUserAlreadyExists() {
13718
13726
  return this.getAttributeValidationDetails().some((detail) => detail.code === "userAlreadyExists");
13719
13727
  }
13720
- /*
13721
- * User-not-found arrives as AADSTS50034. The nested `/api` error carries no
13722
- * innerError and no error_codes array, so the AADSTS marker in the message is
13723
- * the only signal.
13728
+ /**
13729
+ * Checks whether the service requires attributes omitted from the request.
13730
+ * Use it to collect the required attributes before resubmitting.
13731
+ * @returns True when required attributes are missing, otherwise false.
13724
13732
  */
13725
- // TODO: Use the service-provided suberror when it becomes available.
13733
+ isMissingRequiredAttributes() {
13734
+ return this.requiredAttributes.length > 0;
13735
+ }
13726
13736
  isUserNotFoundError() {
13727
13737
  return (this.errorData.error === "invalidRequest" &&
13728
- this.errorData.errorDescription?.includes("AADSTS50034") === true);
13738
+ (this.innerErrorCode === USER_NOT_FOUND ||
13739
+ this.errorData.errorDescription?.includes("AADSTS50034") ===
13740
+ true));
13729
13741
  }
13730
13742
  isUserInvalidError() {
13731
13743
  return (this.errorData.error === "invalidRequest" &&
@@ -13734,23 +13746,26 @@
13734
13746
  .toLowerCase()
13735
13747
  .includes("username parameter"));
13736
13748
  }
13737
- // The verification endpoint uses this outer/inner code pair for an invalid one-time code.
13738
13749
  isInvalidCodeError() {
13739
13750
  return (this.errorData.error === "invalidGrant" &&
13740
- this.errorData.subError === INVALID_ONE_TIME_CODE);
13751
+ this.innerErrorCode === INVALID_ONE_TIME_CODE);
13741
13752
  }
13742
- // New password rejected by policy: inner `passwordTooWeak` (AADSTS120002).
13743
13753
  isInvalidPasswordError() {
13744
13754
  return (this.errorData.error === "invalidRequest" &&
13745
- this.errorData.subError === PASSWORD_TOO_WEAK);
13755
+ this.innerErrorCode === PASSWORD_TOO_WEAK);
13746
13756
  }
13747
13757
  isPasswordPolicyViolationError() {
13748
- return this.getAttributeValidationDetails().some((detail) => detail.code === "passwordPolicyViolation" &&
13749
- detail.attributeIds?.some((attributeId) => attributeId.toLowerCase() === "password") === true);
13758
+ return this.getAttributeValidationDetails().some((detail) => {
13759
+ const attributeIds = detail.attributeIds;
13760
+ return (detail.code === "passwordPolicyViolation" &&
13761
+ Array.isArray(attributeIds) &&
13762
+ attributeIds.some((attributeId) => typeof attributeId === "string" &&
13763
+ attributeId.toLowerCase() === "password"));
13764
+ });
13750
13765
  }
13751
13766
  isPasswordIncorrectError() {
13752
13767
  return (this.errorData.error === "invalidGrant" &&
13753
- this.errorData.subError === INVALID_USERNAME_OR_PASSWORD);
13768
+ this.innerErrorCode === INVALID_USERNAME_OR_PASSWORD);
13754
13769
  }
13755
13770
  getAttributeValidationDetails() {
13756
13771
  const details = this.errorData.attributeValidationDetails;
@@ -13758,6 +13773,12 @@
13758
13773
  ? details.filter((detail) => typeof detail === "object" && detail !== null)
13759
13774
  : [];
13760
13775
  }
13776
+ getAttributeIdsByCode(code) {
13777
+ const attributeIds = this.getAttributeValidationDetails().flatMap((detail) => detail.code === code && Array.isArray(detail.attributeIds)
13778
+ ? detail.attributeIds.filter((attributeId) => typeof attributeId === "string")
13779
+ : []);
13780
+ return [...new Set(attributeIds)];
13781
+ }
13761
13782
  }
13762
13783
 
13763
13784
  /*
@@ -13765,35 +13786,67 @@
13765
13786
  * Licensed under the MIT License.
13766
13787
  */
13767
13788
  /**
13768
- * Error raised when requesting (or resending) a challenge for a selected
13769
- * authentication method. It is a shared action error bound to the shared
13770
- * `RequestChallengeResultV2` and returned regardless of which entry flow reached
13771
- * it. It currently exposes no action-specific detectors — only the inherited
13772
- * `isBrowserRequired()`.
13773
- */
13774
- class RequestChallengeErrorV2 extends AuthFlowErrorBaseV2 {
13775
- }
13776
-
13777
- /*
13778
- * Copyright (c) Microsoft Corporation. All rights reserved.
13779
- * Licensed under the MIT License.
13780
- */
13781
- /**
13782
- * Error raised when verifying a challenge (submitting a one-time code). It
13783
- * exposes the detectors relevant to code verification so the app can respond to
13784
- * a rejected code specifically. Unrecognised failures carry no specific
13785
- * detector; inspect the error code (`unexpected_error` when the server gives
13786
- * none) and `errorDescription`.
13789
+ * Result of a native auth V2 operation. Use {@link CustomAuthResultV2.isState}
13790
+ * to narrow the state before accessing its members.
13787
13791
  */
13788
- class VerifyChallengeErrorV2 extends AuthFlowErrorBaseV2 {
13792
+ class CustomAuthResultV2 {
13793
+ constructor(state, data, scenario = CustomAuthFlowScenarioV2.Unknown) {
13794
+ this.state = state;
13795
+ this.data = data;
13796
+ this.scenario = scenario;
13797
+ }
13789
13798
  /**
13790
- * Checks if the error is due to the provided code being invalid or expired.
13791
- * Use it to prompt the user to re-enter the code or request a new one, rather
13792
- * than restarting the whole flow.
13793
- * @returns True if the code is invalid, false otherwise.
13799
+ * Narrows the result to a specific state by its `stateType` discriminator.
13800
+ * A successful match makes the state's properties available without a cast.
13801
+ * @param stateType - The state type to test for.
13802
+ * @returns True (and narrows `state`) when the current state matches `stateType`.
13794
13803
  */
13795
- isInvalidCode() {
13796
- return this.isInvalidCodeError();
13804
+ isState(stateType) {
13805
+ return this.state.stateType === stateType;
13806
+ }
13807
+ /**
13808
+ * Checks whether the result is in the terminal failed state. A failed result
13809
+ * contains the unified V2 flow error.
13810
+ * @returns True (and narrows `state`) when the operation failed.
13811
+ */
13812
+ isFailed() {
13813
+ return this.state.stateType === "failed";
13814
+ }
13815
+ /**
13816
+ * Creates a failed result from the supplied error. The result uses the
13817
+ * shared {@link FailedStateV2} terminal state and unified V2 flow error.
13818
+ * @param error - The error that occurred.
13819
+ * @param options - The flow-error context.
13820
+ * @returns A failed result carrying the unified V2 flow error.
13821
+ */
13822
+ static createWithError(error, options) {
13823
+ const { scenario = CustomAuthFlowScenarioV2.Unknown, correlationId } = options;
13824
+ const errorData = CustomAuthResultV2.createErrorData(error, correlationId);
13825
+ const flowError = new AuthFlowErrorV2(errorData, scenario);
13826
+ const result = new CustomAuthResultV2(new FailedStateV2(), undefined, scenario);
13827
+ result.error = flowError;
13828
+ return result;
13829
+ }
13830
+ static createErrorData(error, correlationId) {
13831
+ if (error instanceof CustomAuthError) {
13832
+ return error;
13833
+ }
13834
+ if (error instanceof AuthError) {
13835
+ const errorCodes = [];
13836
+ if ("errorNo" in error) {
13837
+ if (typeof error.errorNo === "string") {
13838
+ const code = Number(error.errorNo);
13839
+ if (!isNaN(code)) {
13840
+ errorCodes.push(code);
13841
+ }
13842
+ }
13843
+ else if (typeof error.errorNo === "number") {
13844
+ errorCodes.push(error.errorNo);
13845
+ }
13846
+ }
13847
+ return new MsalCustomAuthError(error.errorCode, error.errorMessage, error.subError, errorCodes, error.correlationId);
13848
+ }
13849
+ return new UnexpectedError(error, correlationId);
13797
13850
  }
13798
13851
  }
13799
13852
 
@@ -13814,18 +13867,6 @@
13814
13867
  }
13815
13868
  }
13816
13869
 
13817
- /*
13818
- * Copyright (c) Microsoft Corporation. All rights reserved.
13819
- * Licensed under the MIT License.
13820
- */
13821
- /**
13822
- * Error raised when redeeming a completed V2 flow's continuation for tokens.
13823
- * It adds no action-specific detectors beyond the inherited
13824
- * `isBrowserRequired()`; the app typically retries or starts sign-in explicitly.
13825
- */
13826
- class SignInContinuationErrorV2 extends AuthFlowErrorBaseV2 {
13827
- }
13828
-
13829
13870
  /*
13830
13871
  * Copyright (c) Microsoft Corporation. All rights reserved.
13831
13872
  * Licensed under the MIT License.
@@ -13842,25 +13883,17 @@
13842
13883
  }
13843
13884
  /**
13844
13885
  * Signs the user in using the continuation established by the completed V2
13845
- * flow. On success the returned result reaches the completed state
13846
- * carrying the signed-in account data; on failure the result's error reports
13847
- * why the follow-up sign-in could not complete.
13848
- * @param inputs - Optional scopes requested for the issued token. Claims
13849
- * are accepted for API alignment but are not sent until the V2 service
13850
- * supports them on authorize-challenge.
13851
- * @returns The result of signing in after the password reset.
13852
- */
13853
- async signIn(inputs) {
13886
+ * flow. The result either reaches the completed state with the signed-in
13887
+ * account data or reports why the follow-up sign-in could not complete.
13888
+ * @returns The result of completing the continuation sign-in.
13889
+ */
13890
+ async signIn() {
13854
13891
  const { correlationId, logger, continuationState, flowClient } = this.stateParameters;
13855
13892
  try {
13856
- if (inputs?.claims) {
13857
- ensureArgumentIsJSONString("inputs.claims", inputs.claims, correlationId);
13858
- }
13859
13893
  logger.verbose("Signing in with a V2 continuation.", correlationId);
13860
13894
  const result = await flowClient.signInWithContinuation({
13861
13895
  correlationId,
13862
13896
  continuationState,
13863
- scopes: inputs?.scopes,
13864
13897
  });
13865
13898
  const account = new CustomAuthAccountData(result.authenticationResult.account, this.stateParameters.config, this.stateParameters.cacheClient, logger, correlationId);
13866
13899
  return new CustomAuthResultV2(new CompletedStateV2(), account, continuationState.scenario);
@@ -13868,7 +13901,6 @@
13868
13901
  catch (error) {
13869
13902
  logger.errorPii(`Failed to sign in with a V2 continuation. Error: '${error}'.`, correlationId);
13870
13903
  return CustomAuthResultV2.createWithError(error, {
13871
- errorType: SignInContinuationErrorV2,
13872
13904
  scenario: continuationState.scenario,
13873
13905
  correlationId,
13874
13906
  });
@@ -13876,29 +13908,6 @@
13876
13908
  }
13877
13909
  }
13878
13910
 
13879
- /*
13880
- * Copyright (c) Microsoft Corporation. All rights reserved.
13881
- * Licensed under the MIT License.
13882
- */
13883
- /**
13884
- * Error raised when submitting a new password. It exposes the detectors relevant
13885
- * to password submission so the app can react to a rejected password
13886
- * specifically. Unrecognised failures carry no specific detector; inspect the
13887
- * error code (`unexpected_error` when the server gives none) and
13888
- * `errorDescription`.
13889
- */
13890
- class SubmitNewPasswordErrorV2 extends AuthFlowErrorBaseV2 {
13891
- /**
13892
- * Checks if the error is due to the new password being invalid, for example
13893
- * because it fails the tenant's complexity policy. Use it to prompt the user
13894
- * for a stronger password rather than restarting the reset flow.
13895
- * @returns True if the new password is invalid, false otherwise.
13896
- */
13897
- isInvalidPassword() {
13898
- return this.isInvalidPasswordError();
13899
- }
13900
- }
13901
-
13902
13911
  /*
13903
13912
  * Copyright (c) Microsoft Corporation. All rights reserved.
13904
13913
  * Licensed under the MIT License.
@@ -13941,7 +13950,6 @@
13941
13950
  catch (error) {
13942
13951
  logger.errorPii(`Failed to submit V2 new password. Error: '${error}'.`, correlationId);
13943
13952
  return CustomAuthResultV2.createWithError(error, {
13944
- errorType: SubmitNewPasswordErrorV2,
13945
13953
  scenario: continuationState.scenario,
13946
13954
  correlationId,
13947
13955
  });
@@ -13962,9 +13970,7 @@
13962
13970
  this.codeLength = stateParameters.codeLength;
13963
13971
  }
13964
13972
  async submitCodeCore(code) {
13965
- if (this.codeLength) {
13966
- this.ensureCodeIsValid(code, this.codeLength);
13967
- }
13973
+ ensureArgumentIsNotNullOrUndefined("code", code, this.stateParameters.correlationId);
13968
13974
  return this.stateParameters.flowClient.submitCode({
13969
13975
  correlationId: this.stateParameters.correlationId,
13970
13976
  continuationState: this.stateParameters.continuationState,
@@ -13979,157 +13985,6 @@
13979
13985
  }
13980
13986
  }
13981
13987
 
13982
- /*
13983
- * Copyright (c) Microsoft Corporation. All rights reserved.
13984
- * Licensed under the MIT License.
13985
- */
13986
- /**
13987
- * State returned when sign-in requires verification of an email or SMS MFA
13988
- * challenge. It allows the app to submit the challenge or request a replacement.
13989
- */
13990
- class MFAVerificationRequiredStateV2 extends ChallengeVerificationStateBaseV2 {
13991
- constructor() {
13992
- super(...arguments);
13993
- this.stateType = "mfaVerificationRequired";
13994
- }
13995
- /**
13996
- * Submits the email or SMS challenge as the second authentication factor.
13997
- * Successful verification completes sign-in.
13998
- * @param challenge - The challenge value to submit.
13999
- * @returns The result of submitting the MFA challenge.
14000
- */
14001
- async submitChallenge(challenge) {
14002
- const { correlationId, logger, continuationState } = this.stateParameters;
14003
- try {
14004
- logger.verbose("Submitting V2 MFA challenge.", correlationId);
14005
- const result = await this.submitCodeCore(challenge);
14006
- if (result.type !== FLOW_COMPLETED_V2) {
14007
- throw new CustomAuthError(UNSUPPORTED_FLOW_TRANSITION, `MFA challenge submission result type '${result.type}' is not supported.`, correlationId);
14008
- }
14009
- const account = new CustomAuthAccountData(result.authenticationResult.account, this.stateParameters.config, this.stateParameters.cacheClient, logger, correlationId);
14010
- return new CustomAuthResultV2(new CompletedStateV2(), account, continuationState.scenario);
14011
- }
14012
- catch (error) {
14013
- logger.errorPii(`Failed to submit V2 MFA challenge. Error: '${error}'.`, correlationId);
14014
- return CustomAuthResultV2.createWithError(error, {
14015
- errorType: VerifyChallengeErrorV2,
14016
- scenario: continuationState.scenario,
14017
- correlationId,
14018
- });
14019
- }
14020
- }
14021
- /**
14022
- * Requests a replacement challenge for the selected MFA method. The
14023
- * returned state contains the refreshed email or SMS challenge metadata.
14024
- * @returns The result of requesting a replacement MFA challenge.
14025
- */
14026
- async resendChallenge() {
14027
- const { correlationId, logger, continuationState } = this.stateParameters;
14028
- try {
14029
- logger.verbose("Resending V2 MFA challenge.", correlationId);
14030
- const result = await this.resendCodeCore();
14031
- return new CustomAuthResultV2(new MFAVerificationRequiredStateV2({
14032
- correlationId: result.correlationId,
14033
- logger,
14034
- config: this.stateParameters.config,
14035
- flowClient: this.stateParameters.flowClient,
14036
- continuationState: result.continuationState,
14037
- cacheClient: this.stateParameters.cacheClient,
14038
- method: this.method,
14039
- sentTo: result.sentTo,
14040
- channel: result.channel,
14041
- codeLength: result.codeLength,
14042
- }), undefined, result.continuationState.scenario);
14043
- }
14044
- catch (error) {
14045
- logger.errorPii(`Failed to resend V2 MFA challenge. Error: '${error}'.`, correlationId);
14046
- return CustomAuthResultV2.createWithError(error, {
14047
- errorType: RequestChallengeErrorV2,
14048
- scenario: continuationState.scenario,
14049
- correlationId,
14050
- });
14051
- }
14052
- }
14053
- }
14054
-
14055
- /*
14056
- * Copyright (c) Microsoft Corporation. All rights reserved.
14057
- * Licensed under the MIT License.
14058
- */
14059
- class AuthenticationMethodSelectionStateBaseV2 extends AuthFlowActionRequiredStateBase {
14060
- constructor(stateParameters) {
14061
- super(stateParameters);
14062
- this.methods = stateParameters.methods;
14063
- }
14064
- async requestSelectedMethodChallenge(method) {
14065
- const { correlationId, continuationState, flowClient } = this.stateParameters;
14066
- const selectedMethod = this.methods.find((candidate) => candidate.id === method.id);
14067
- if (!selectedMethod) {
14068
- throw new InvalidArgumentError("method", correlationId);
14069
- }
14070
- const result = await flowClient.requestChallenge({
14071
- correlationId,
14072
- continuationState: {
14073
- ...continuationState,
14074
- links: {
14075
- ...continuationState.links,
14076
- challenge: selectedMethod.challengeHref,
14077
- },
14078
- },
14079
- });
14080
- return { result, selectedMethod };
14081
- }
14082
- }
14083
-
14084
- /*
14085
- * Copyright (c) Microsoft Corporation. All rights reserved.
14086
- * Licensed under the MIT License.
14087
- */
14088
- /**
14089
- * State returned when sign-in requires a registered multi-factor
14090
- * authentication method.
14091
- */
14092
- class MFARequiredStateV2 extends AuthenticationMethodSelectionStateBaseV2 {
14093
- constructor() {
14094
- super(...arguments);
14095
- this.stateType = "mfaRequired";
14096
- }
14097
- /**
14098
- * Requests a challenge for a registered MFA method.
14099
- * @param method - A method from {@link methods}.
14100
- * @returns A result requiring challenge verification or describing failure.
14101
- */
14102
- async requestChallenge(method) {
14103
- const { correlationId, logger, continuationState, flowClient } = this.stateParameters;
14104
- try {
14105
- const { result, selectedMethod } = await this.requestSelectedMethodChallenge(method);
14106
- if (result.type !== FLOW_CODE_REQUIRED_V2) {
14107
- throw new CustomAuthError(UNSUPPORTED_FLOW_TRANSITION, `MFA method selection expected a code challenge but received '${result.type}'.`, correlationId);
14108
- }
14109
- return new CustomAuthResultV2(new MFAVerificationRequiredStateV2({
14110
- correlationId: result.correlationId,
14111
- logger,
14112
- config: this.stateParameters.config,
14113
- flowClient,
14114
- continuationState: result.continuationState,
14115
- cacheClient: this.stateParameters.cacheClient,
14116
- method: selectedMethod,
14117
- sentTo: result.sentTo,
14118
- channel: result.channel,
14119
- codeLength: result.codeLength,
14120
- }), undefined, result.continuationState.scenario);
14121
- }
14122
- catch (error) {
14123
- logger.errorPii(`Failed to request V2 MFA challenge. Error: '${error}'.`, correlationId);
14124
- return CustomAuthResultV2.createWithError(error, {
14125
- errorType: RequestChallengeErrorV2,
14126
- scenario: continuationState.scenario,
14127
- correlationId,
14128
- });
14129
- }
14130
- }
14131
- }
14132
-
14133
13988
  /*
14134
13989
  * Copyright (c) Microsoft Corporation. All rights reserved.
14135
13990
  * Licensed under the MIT License.
@@ -14174,29 +14029,25 @@
14174
14029
  return signUpStateTransitionHandler.handleVerification(result, {
14175
14030
  ...this.stateParameters,
14176
14031
  signUpStateTransitionHandler,
14177
- });
14178
- }
14179
- if (result.type === FLOW_SIGN_IN_CONTINUATION_REQUIRED_V2) {
14180
- return new CustomAuthResultV2(new SignInContinuationStateV2({
14181
- correlationId: result.correlationId,
14182
- logger,
14183
- config: this.stateParameters.config,
14184
- flowClient: this.stateParameters.flowClient,
14185
- continuationState: result.continuationState,
14186
- cacheClient: this.stateParameters.cacheClient,
14187
- }), undefined, result.continuationState.scenario);
14032
+ });
14188
14033
  }
14189
- if (result.type === FLOW_MFA_REQUIRED_V2) {
14190
- return new CustomAuthResultV2(new MFARequiredStateV2({
14034
+ if (result.type === FLOW_SIGN_IN_CONTINUATION_REQUIRED_V2) {
14035
+ return new CustomAuthResultV2(new SignInContinuationStateV2({
14191
14036
  correlationId: result.correlationId,
14192
14037
  logger,
14193
14038
  config: this.stateParameters.config,
14194
14039
  flowClient: this.stateParameters.flowClient,
14195
14040
  continuationState: result.continuationState,
14196
14041
  cacheClient: this.stateParameters.cacheClient,
14197
- methods: result.methods,
14198
14042
  }), undefined, result.continuationState.scenario);
14199
14043
  }
14044
+ if (result.type === FLOW_MFA_REQUIRED_V2) {
14045
+ const signInStateTransitionHandler = this.stateParameters.signInStateTransitionHandler;
14046
+ if (!signInStateTransitionHandler) {
14047
+ throw new CustomAuthError(UNSUPPORTED_FLOW_TRANSITION, "Sign-in state transition handler is missing.", correlationId);
14048
+ }
14049
+ return signInStateTransitionHandler.handleMfaRequired(result, this.stateParameters);
14050
+ }
14200
14051
  if (result.type === FLOW_COMPLETED_V2) {
14201
14052
  const account = new CustomAuthAccountData(result.authenticationResult.account, this.stateParameters.config, this.stateParameters.cacheClient, logger, correlationId);
14202
14053
  return new CustomAuthResultV2(new CompletedStateV2(), account, continuationState.scenario);
@@ -14206,7 +14057,6 @@
14206
14057
  catch (error) {
14207
14058
  logger.errorPii(`Failed to submit V2 first-factor code. Error: '${error}'.`, correlationId);
14208
14059
  return CustomAuthResultV2.createWithError(error, {
14209
- errorType: VerifyChallengeErrorV2,
14210
14060
  scenario: continuationState.scenario,
14211
14061
  correlationId,
14212
14062
  });
@@ -14230,6 +14080,7 @@
14230
14080
  continuationState: result.continuationState,
14231
14081
  cacheClient: this.stateParameters.cacheClient,
14232
14082
  signUpStateTransitionHandler: this.stateParameters.signUpStateTransitionHandler,
14083
+ signInStateTransitionHandler: this.stateParameters.signInStateTransitionHandler,
14233
14084
  method: this.method,
14234
14085
  sentTo: result.sentTo,
14235
14086
  channel: result.channel,
@@ -14239,7 +14090,77 @@
14239
14090
  catch (error) {
14240
14091
  logger.errorPii(`Failed to resend V2 first-factor code. Error: '${error}'.`, correlationId);
14241
14092
  return CustomAuthResultV2.createWithError(error, {
14242
- errorType: RequestChallengeErrorV2,
14093
+ scenario: continuationState.scenario,
14094
+ correlationId,
14095
+ });
14096
+ }
14097
+ }
14098
+ }
14099
+
14100
+ /*
14101
+ * Copyright (c) Microsoft Corporation. All rights reserved.
14102
+ * Licensed under the MIT License.
14103
+ */
14104
+ /**
14105
+ * State returned when sign-in requires verification of an email or SMS MFA
14106
+ * challenge. It allows the app to submit the challenge or request a replacement.
14107
+ */
14108
+ class MFAVerificationRequiredStateV2 extends ChallengeVerificationStateBaseV2 {
14109
+ constructor() {
14110
+ super(...arguments);
14111
+ this.stateType = "mfaVerificationRequired";
14112
+ }
14113
+ /**
14114
+ * Submits the email or SMS challenge as the second authentication factor.
14115
+ * Successful verification completes sign-in.
14116
+ * @param challenge - The challenge value to submit.
14117
+ * @returns The result of submitting the MFA challenge.
14118
+ */
14119
+ async submitChallenge(challenge) {
14120
+ const { correlationId, logger, continuationState } = this.stateParameters;
14121
+ try {
14122
+ logger.verbose("Submitting V2 MFA challenge.", correlationId);
14123
+ const result = await this.submitCodeCore(challenge);
14124
+ if (result.type !== FLOW_COMPLETED_V2) {
14125
+ throw new CustomAuthError(UNSUPPORTED_FLOW_TRANSITION, `MFA challenge submission result type '${result.type}' is not supported.`, correlationId);
14126
+ }
14127
+ const account = new CustomAuthAccountData(result.authenticationResult.account, this.stateParameters.config, this.stateParameters.cacheClient, logger, correlationId);
14128
+ return new CustomAuthResultV2(new CompletedStateV2(), account, continuationState.scenario);
14129
+ }
14130
+ catch (error) {
14131
+ logger.errorPii(`Failed to submit V2 MFA challenge. Error: '${error}'.`, correlationId);
14132
+ return CustomAuthResultV2.createWithError(error, {
14133
+ scenario: continuationState.scenario,
14134
+ correlationId,
14135
+ });
14136
+ }
14137
+ }
14138
+ /**
14139
+ * Requests a replacement challenge for the selected MFA method. The
14140
+ * returned state contains the refreshed email or SMS challenge metadata.
14141
+ * @returns The result of requesting a replacement MFA challenge.
14142
+ */
14143
+ async resendChallenge() {
14144
+ const { correlationId, logger, continuationState } = this.stateParameters;
14145
+ try {
14146
+ logger.verbose("Resending V2 MFA challenge.", correlationId);
14147
+ const result = await this.resendCodeCore();
14148
+ return new CustomAuthResultV2(new MFAVerificationRequiredStateV2({
14149
+ correlationId: result.correlationId,
14150
+ logger,
14151
+ config: this.stateParameters.config,
14152
+ flowClient: this.stateParameters.flowClient,
14153
+ continuationState: result.continuationState,
14154
+ cacheClient: this.stateParameters.cacheClient,
14155
+ method: this.method,
14156
+ sentTo: result.sentTo,
14157
+ channel: result.channel,
14158
+ codeLength: result.codeLength,
14159
+ }), undefined, result.continuationState.scenario);
14160
+ }
14161
+ catch (error) {
14162
+ logger.errorPii(`Failed to resend V2 MFA challenge. Error: '${error}'.`, correlationId);
14163
+ return CustomAuthResultV2.createWithError(error, {
14243
14164
  scenario: continuationState.scenario,
14244
14165
  correlationId,
14245
14166
  });
@@ -14257,23 +14178,23 @@
14257
14178
  * methods and lets the app request a challenge for the chosen one. The flow
14258
14179
  * stays on this state until a challenge is successfully requested.
14259
14180
  */
14260
- class AuthMethodSelectionRequiredStateV2 extends AuthenticationMethodSelectionStateBaseV2 {
14261
- constructor() {
14262
- super(...arguments);
14181
+ class AuthMethodSelectionRequiredStateV2 extends AuthFlowActionRequiredStateBase {
14182
+ constructor(stateParameters) {
14183
+ super(stateParameters);
14263
14184
  this.stateType = "authMethodSelectionRequired";
14185
+ this.methods = stateParameters.methods;
14264
14186
  }
14265
14187
  /**
14266
- * Requests a challenge for the selected authentication method. The returned
14188
+ * Selects an authentication method and requests its challenge. The returned
14267
14189
  * state identifies the credential the application must collect.
14268
- * @param method - The method to challenge, from {@link methods}.
14269
- * @returns The result of requesting the challenge.
14190
+ * @param method - The method to select, from {@link methods}.
14191
+ * @returns The result of selecting the method and requesting its challenge.
14270
14192
  */
14271
- async requestChallenge(method) {
14272
- const { correlationId, logger, continuationState, flowClient } = this.stateParameters;
14193
+ async selectAuthMethod(method) {
14194
+ const { authenticationFactor, correlationId, logger, continuationState, flowClient, signInStateTransitionHandler, } = this.stateParameters;
14273
14195
  try {
14274
14196
  logger.verbose("Requesting challenge for the selected V2 method.", correlationId);
14275
14197
  const { result, selectedMethod } = await this.requestSelectedMethodChallenge(method);
14276
- const resultType = result.type;
14277
14198
  const commonStateParameters = {
14278
14199
  correlationId: result.correlationId,
14279
14200
  logger,
@@ -14282,12 +14203,33 @@
14282
14203
  continuationState: result.continuationState,
14283
14204
  cacheClient: this.stateParameters.cacheClient,
14284
14205
  };
14285
- if (result.type === FLOW_CODE_REQUIRED_V2 &&
14206
+ if (authenticationFactor === AuthenticationFactorV2.SINGLE_FACTOR &&
14207
+ result.type === FLOW_CODE_REQUIRED_V2 &&
14286
14208
  (result.channel?.toLowerCase() ===
14287
14209
  AuthenticationMethodTypeV2.EMAIL ||
14288
14210
  result.channel?.toLowerCase() ===
14289
14211
  AuthenticationMethodTypeV2.SMS)) {
14290
14212
  return new CustomAuthResultV2(new CodeRequiredStateV2({
14213
+ ...commonStateParameters,
14214
+ signInStateTransitionHandler,
14215
+ method: selectedMethod,
14216
+ sentTo: result.sentTo,
14217
+ channel: result.channel,
14218
+ codeLength: result.codeLength,
14219
+ }), undefined, result.continuationState.scenario);
14220
+ }
14221
+ if (continuationState.scenario ===
14222
+ CustomAuthFlowScenarioV2.SignIn &&
14223
+ authenticationFactor === AuthenticationFactorV2.SINGLE_FACTOR &&
14224
+ result.type === FLOW_PASSWORD_REQUIRED_V2) {
14225
+ if (!signInStateTransitionHandler) {
14226
+ throw new CustomAuthError(UNSUPPORTED_FLOW_TRANSITION, "Sign-in method selection cannot map a password challenge without a sign-in transition handler.", correlationId);
14227
+ }
14228
+ return signInStateTransitionHandler.handlePasswordRequired(result, commonStateParameters);
14229
+ }
14230
+ if (authenticationFactor === AuthenticationFactorV2.MULTI_FACTOR &&
14231
+ result.type === FLOW_CODE_REQUIRED_V2) {
14232
+ return new CustomAuthResultV2(new MFAVerificationRequiredStateV2({
14291
14233
  ...commonStateParameters,
14292
14234
  method: selectedMethod,
14293
14235
  sentTo: result.sentTo,
@@ -14295,115 +14237,44 @@
14295
14237
  codeLength: result.codeLength,
14296
14238
  }), undefined, result.continuationState.scenario);
14297
14239
  }
14298
- throw new CustomAuthError(UNSUPPORTED_FLOW_TRANSITION, `Challenge type '${resultType}' with channel '${result.type === FLOW_CODE_REQUIRED_V2
14299
- ? result.channel
14300
- : AuthenticationMethodTypeV2.PASSWORD}' is not supported for password reset.`, correlationId);
14240
+ const expectedChallenge = authenticationFactor === AuthenticationFactorV2.SINGLE_FACTOR
14241
+ ? continuationState.scenario ===
14242
+ CustomAuthFlowScenarioV2.SignIn
14243
+ ? "an email or SMS code challenge or a password challenge for single-factor sign-in"
14244
+ : "an email or SMS code challenge for single-factor authentication"
14245
+ : "a code challenge for multi-factor authentication";
14246
+ const returnedChallenge = result.type === FLOW_CODE_REQUIRED_V2
14247
+ ? result.channel
14248
+ ? `a '${result.channel}' code challenge`
14249
+ : "a code challenge without a channel"
14250
+ : "a password challenge";
14251
+ throw new CustomAuthError(UNSUPPORTED_FLOW_TRANSITION, `Authentication method selection expected ${expectedChallenge}, but the server returned ${returnedChallenge}.`, correlationId);
14301
14252
  }
14302
14253
  catch (error) {
14303
14254
  logger.errorPii(`Failed to request V2 challenge. Error: '${error}'.`, correlationId);
14304
14255
  return CustomAuthResultV2.createWithError(error, {
14305
- errorType: RequestChallengeErrorV2,
14306
14256
  scenario: continuationState.scenario,
14307
14257
  correlationId,
14308
14258
  });
14309
14259
  }
14310
14260
  }
14311
- }
14312
-
14313
- /*
14314
- * Copyright (c) Microsoft Corporation. All rights reserved.
14315
- * Licensed under the MIT License.
14316
- */
14317
- /**
14318
- * Error raised by the first call of the native auth V2 reset-password flow
14319
- * (`resetPasswordV2`). It surfaces only the detectors relevant to starting a
14320
- * password reset, so an app inspecting `result.error` sees a small, focused set.
14321
- * Any unrecognised failure carries no specific detector; inspect the error code
14322
- * (`unexpected_error` when the server gives none) and `errorDescription`.
14323
- */
14324
- class ResetPasswordStartErrorV2 extends AuthFlowErrorBaseV2 {
14325
- /**
14326
- * Checks if the supplied username is empty or invalid.
14327
- * @returns True if the username is invalid, false otherwise.
14328
- */
14329
- isInvalidUsername() {
14330
- return this.isUserInvalidError();
14331
- }
14332
- /**
14333
- * Checks if the error is due to the user not being found. Use it to tell the
14334
- * user no account matches the supplied username, rather than exposing a
14335
- * generic failure that hides the real cause.
14336
- * @returns True if the user was not found, false otherwise.
14337
- */
14338
- isUserNotFound() {
14339
- return this.isUserNotFoundError();
14340
- }
14341
- }
14342
-
14343
- /*
14344
- * Copyright (c) Microsoft Corporation. All rights reserved.
14345
- * Licensed under the MIT License.
14346
- */
14347
- /**
14348
- * Error returned when native auth V2 sign-in cannot start.
14349
- */
14350
- class SignInStartErrorV2 extends AuthFlowErrorBaseV2 {
14351
- /**
14352
- * Checks whether the service rejected the username parameter.
14353
- * @returns True when the username was empty or invalid.
14354
- */
14355
- isInvalidUsername() {
14356
- return this.isUserInvalidError();
14357
- }
14358
- /**
14359
- * Checks whether the supplied username does not identify an account.
14360
- * @returns True when the service reports that the user was not found.
14361
- */
14362
- isUserNotFound() {
14363
- return this.isUserNotFoundError();
14364
- }
14365
- /**
14366
- * Checks whether an automatically submitted password was rejected.
14367
- * @returns True when the password is incorrect.
14368
- */
14369
- isInvalidPassword() {
14370
- return this.isPasswordIncorrectError();
14371
- }
14372
- }
14373
-
14374
- /*
14375
- * Copyright (c) Microsoft Corporation. All rights reserved.
14376
- * Licensed under the MIT License.
14377
- */
14378
- /**
14379
- * Error returned when native auth V2 sign-up cannot start. It exposes
14380
- * detectors for failures that an app can correct without restarting the flow.
14381
- */
14382
- class SignUpStartErrorV2 extends AuthFlowErrorBaseV2 {
14383
- /**
14384
- * Checks whether an upfront password violates the tenant's password policy.
14385
- * Use it to prompt the user for a stronger password.
14386
- * @returns True when the password violates policy, otherwise false.
14387
- */
14388
- isInvalidPassword() {
14389
- return this.isPasswordPolicyViolationError();
14390
- }
14391
- }
14392
-
14393
- /*
14394
- * Copyright (c) Microsoft Corporation. All rights reserved.
14395
- * Licensed under the MIT License.
14396
- */
14397
- /**
14398
- * Error returned when a password cannot be submitted for V2 sign-in.
14399
- */
14400
- class SubmitPasswordErrorV2 extends AuthFlowErrorBaseV2 {
14401
- /**
14402
- * Checks whether the supplied password was rejected.
14403
- * @returns True when the password is incorrect.
14404
- */
14405
- isInvalidPassword() {
14406
- return this.isPasswordIncorrectError();
14261
+ async requestSelectedMethodChallenge(method) {
14262
+ const { correlationId, continuationState, flowClient } = this.stateParameters;
14263
+ const selectedMethod = this.methods.find((candidate) => candidate.id === method.id);
14264
+ if (!selectedMethod) {
14265
+ throw new InvalidArgumentError("method", correlationId);
14266
+ }
14267
+ const result = await flowClient.requestChallenge({
14268
+ correlationId,
14269
+ continuationState: {
14270
+ ...continuationState,
14271
+ links: {
14272
+ ...continuationState.links,
14273
+ challenge: selectedMethod.challengeHref,
14274
+ },
14275
+ },
14276
+ });
14277
+ return { result, selectedMethod };
14407
14278
  }
14408
14279
  }
14409
14280
 
@@ -14440,7 +14311,7 @@
14440
14311
  return new CustomAuthResultV2(new CompletedStateV2(), account, continuationState.scenario);
14441
14312
  }
14442
14313
  if (result.type === FLOW_MFA_REQUIRED_V2) {
14443
- return new CustomAuthResultV2(new MFARequiredStateV2({
14314
+ return new CustomAuthResultV2(new AuthMethodSelectionRequiredStateV2({
14444
14315
  correlationId: result.correlationId,
14445
14316
  logger,
14446
14317
  config: this.stateParameters.config,
@@ -14448,6 +14319,7 @@
14448
14319
  continuationState: result.continuationState,
14449
14320
  cacheClient: this.stateParameters.cacheClient,
14450
14321
  methods: result.methods,
14322
+ authenticationFactor: AuthenticationFactorV2.MULTI_FACTOR,
14451
14323
  }), undefined, result.continuationState.scenario);
14452
14324
  }
14453
14325
  throw new CustomAuthError(UNSUPPORTED_FLOW_TRANSITION, `Password verification result type '${resultType}' is not supported.`, correlationId);
@@ -14455,7 +14327,6 @@
14455
14327
  catch (error) {
14456
14328
  logger.errorPii(`Failed to submit V2 sign-in password. Error: '${error}'.`, correlationId);
14457
14329
  return CustomAuthResultV2.createWithError(error, {
14458
- errorType: SubmitPasswordErrorV2,
14459
14330
  scenario: continuationState.scenario,
14460
14331
  correlationId,
14461
14332
  });
@@ -14467,26 +14338,25 @@
14467
14338
  * Copyright (c) Microsoft Corporation. All rights reserved.
14468
14339
  * Licensed under the MIT License.
14469
14340
  */
14470
- /**
14471
- * Error returned when additional V2 sign-up attributes cannot be submitted. It
14472
- * identifies attribute failures that an app can correct and resubmit.
14473
- */
14474
- class SubmitAttributesErrorV2 extends AuthFlowErrorBaseV2 {
14475
- /**
14476
- * Checks whether the service requires attributes omitted from the request.
14477
- * Use it to collect the required attributes before resubmitting.
14478
- * @returns True when required attributes are missing, otherwise false.
14479
- */
14480
- isMissingRequiredAttributes() {
14481
- return this.getAttributeValidationDetails().some((detail) => detail.code === "attributeRequired");
14341
+ class SignInStateTransitionHandlerV2 {
14342
+ handlePasswordRequired(result, stateParameters) {
14343
+ return new CustomAuthResultV2(new PasswordRequiredStateV2({
14344
+ ...stateParameters,
14345
+ correlationId: result.correlationId,
14346
+ continuationState: result.continuationState,
14347
+ }), undefined, result.continuationState.scenario);
14482
14348
  }
14483
- /**
14484
- * Checks whether a submitted password violates the tenant's password policy.
14485
- * Use it to prompt the user for a stronger password.
14486
- * @returns True when the password violates policy, otherwise false.
14487
- */
14488
- isInvalidPassword() {
14489
- return this.isPasswordPolicyViolationError();
14349
+ handleMfaRequired(result, stateParameters) {
14350
+ return new CustomAuthResultV2(new AuthMethodSelectionRequiredStateV2({
14351
+ correlationId: result.correlationId,
14352
+ logger: stateParameters.logger,
14353
+ config: stateParameters.config,
14354
+ flowClient: stateParameters.flowClient,
14355
+ continuationState: result.continuationState,
14356
+ cacheClient: stateParameters.cacheClient,
14357
+ methods: result.methods,
14358
+ authenticationFactor: AuthenticationFactorV2.MULTI_FACTOR,
14359
+ }), undefined, result.continuationState.scenario);
14490
14360
  }
14491
14361
  }
14492
14362
 
@@ -14533,7 +14403,6 @@
14533
14403
  catch (error) {
14534
14404
  logger.errorPii(`Failed to submit V2 sign-up attributes. Error: '${error}'.`, correlationId);
14535
14405
  return CustomAuthResultV2.createWithError(error, {
14536
- errorType: SubmitAttributesErrorV2,
14537
14406
  scenario: continuationState.scenario,
14538
14407
  correlationId,
14539
14408
  });
@@ -14572,7 +14441,6 @@
14572
14441
  catch (error) {
14573
14442
  logger.errorPii(`Failed to submit V2 sign-up password. Error: '${error}'.`, correlationId);
14574
14443
  return CustomAuthResultV2.createWithError(error, {
14575
- errorType: SubmitAttributesErrorV2,
14576
14444
  scenario: continuationState.scenario,
14577
14445
  correlationId,
14578
14446
  });
@@ -20049,6 +19917,53 @@
20049
19917
  }
20050
19918
  }
20051
19919
 
19920
+ /*
19921
+ * Copyright (c) Microsoft Corporation. All rights reserved.
19922
+ * Licensed under the MIT License.
19923
+ */
19924
+ /**
19925
+ * Returns true when the supplied user agent is using Safari
19926
+ *
19927
+ * @internal
19928
+ */
19929
+ function isSafari(userAgent = typeof navigator !== "undefined"
19930
+ ? navigator.userAgent
19931
+ : "") {
19932
+ if (/OPR\/|OPiOS|PhantomJS|SamsungBrowser|Edge|EdgiOS|EdgA/.test(userAgent)) {
19933
+ return false;
19934
+ }
19935
+ const browserNavigator = typeof navigator !== "undefined"
19936
+ ? navigator
19937
+ : undefined;
19938
+ if (/Edg/.test(userAgent) ||
19939
+ browserNavigator?.userAgentData?.brands?.some((brand) => brand?.brand === "Microsoft Edge")) {
19940
+ return false;
19941
+ }
19942
+ if (/Electron|CriOS|Chrome|Trident|FxiOS|Firefox/.test(userAgent)) {
19943
+ return false;
19944
+ }
19945
+ return /Safari/.test(userAgent) || /AppleWebKit/.test(userAgent);
19946
+ }
19947
+ /**
19948
+ * Returns true when EAR should be used for the current request.
19949
+ *
19950
+ * Safari cannot complete EAR's cross-origin form POST, so requests configured
19951
+ * for EAR transparently use authorization code flow instead.
19952
+ *
19953
+ * @internal
19954
+ */
19955
+ function shouldUseEar(protocolMode, logger, performanceClient, correlationId, userAgent) {
19956
+ if (protocolMode !== ProtocolMode.EAR) {
19957
+ return false;
19958
+ }
19959
+ if (!isSafari(userAgent)) {
19960
+ return true;
19961
+ }
19962
+ logger.verbose("Safari detected. Falling back from EAR to authorization code flow.", correlationId);
19963
+ performanceClient.addFields({ "ext.earFallbackReason": "safari" }, correlationId);
19964
+ return false;
19965
+ }
19966
+
20052
19967
  /*
20053
19968
  * Copyright (c) Microsoft Corporation. All rights reserved.
20054
19969
  * Licensed under the MIT License.
@@ -22727,7 +22642,7 @@
22727
22642
  }
22728
22643
  const isPlatformBroker = isPlatformAuthAllowed(this.config, this.logger, this.correlationId, this.platformAuthProvider, request.authenticationScheme);
22729
22644
  validRequest.platformBroker = isPlatformBroker;
22730
- if (this.config.system.protocolMode === ProtocolMode.EAR) {
22645
+ if (shouldUseEar(this.config.system.protocolMode, this.logger, this.performanceClient, this.correlationId)) {
22731
22646
  return this.executeEarFlow(validRequest, popupParams, pkceCodes);
22732
22647
  }
22733
22648
  else {
@@ -23181,7 +23096,7 @@
23181
23096
  // Clear temporary cache if the back button is clicked during the redirect flow.
23182
23097
  window.addEventListener("pageshow", handleBackButton);
23183
23098
  try {
23184
- const redirectOperation = this.config.system.protocolMode === ProtocolMode.EAR
23099
+ const redirectOperation = shouldUseEar(this.config.system.protocolMode, this.logger, this.performanceClient, this.correlationId)
23185
23100
  ? this.executeEarFlow(validRequest)
23186
23101
  : this.executeCodeFlow(validRequest);
23187
23102
  await Promise.race([redirectOperation, backButtonCancellation]);
@@ -23683,7 +23598,7 @@
23683
23598
  const silentRequest = await invokeAsync(initializeAuthorizationRequest, StandardInteractionClientInitializeAuthorizationRequest, this.logger, this.performanceClient, this.correlationId)(inputRequest, InteractionType.Silent, this.config, this.browserCrypto, this.browserStorage, this.logger, this.performanceClient, this.correlationId);
23684
23599
  silentRequest.platformBroker = isPlatformAuthAllowed(this.config, this.logger, this.correlationId, this.platformAuthProvider, silentRequest.authenticationScheme);
23685
23600
  preconnect(silentRequest.authority);
23686
- if (this.config.system.protocolMode === ProtocolMode.EAR) {
23601
+ if (shouldUseEar(this.config.system.protocolMode, this.logger, this.performanceClient, this.correlationId)) {
23687
23602
  return this.executeEarFlow(silentRequest);
23688
23603
  }
23689
23604
  else {
@@ -24067,14 +23982,20 @@
24067
23982
  return prepareRequest(input);
24068
23983
  }
24069
23984
  /**
24070
- * Preserves the standard web thumbprint and caller-owned request references.
23985
+ * Extends the web thumbprint with silent-flow options while preserving caller-owned references.
24071
23986
  */
24072
23987
  function prepareWebSilentRequest({ request, account, correlationId, config, }) {
24073
23988
  const thumbprint = getRequestThumbprint(config.auth.clientId, {
24074
23989
  ...request,
24075
23990
  authority: request.authority || config.auth.authority}, account.homeAccountId);
24076
23991
  return {
24077
- key: JSON.stringify(thumbprint),
23992
+ key: JSON.stringify({
23993
+ ...thumbprint,
23994
+ forceRefresh: !!request.forceRefresh,
23995
+ cacheLookupPolicy: request.cacheLookupPolicy ?? CacheLookupPolicy.Default,
23996
+ extraParameters: canonicalizeStringDict(request.extraParameters),
23997
+ extraQueryParameters: canonicalizeStringDict(request.extraQueryParameters),
23998
+ }),
24078
23999
  request,
24079
24000
  account,
24080
24001
  };
@@ -25685,6 +25606,7 @@
25685
25606
  constructor(operatingContext, customAuthApiClient, customAuthApiClientV2) {
25686
25607
  super(operatingContext);
25687
25608
  this.signUpStateTransitionHandlerV2 = new SignUpStateTransitionHandlerV2();
25609
+ this.signInStateTransitionHandlerV2 = new SignInStateTransitionHandlerV2();
25688
25610
  if (!this.isBrowserEnvironment) {
25689
25611
  this.logger.verbose("The SDK can only be used in a browser environment.", "");
25690
25612
  throw new UnsupportedEnvironmentError();
@@ -25962,11 +25884,19 @@
25962
25884
  try {
25963
25885
  ensureArgumentIsNotNullOrUndefined("inputs", inputs, correlationId);
25964
25886
  ensureArgumentIsNotEmptyString("inputs.username", inputs.username, correlationId);
25887
+ if (inputs.scopes !== undefined && inputs.scopes !== null) {
25888
+ ensureArgumentIsStringArray("inputs.scopes", inputs.scopes, correlationId);
25889
+ }
25890
+ if (inputs.claims) {
25891
+ ensureArgumentIsJSONString("inputs.claims", inputs.claims, correlationId);
25892
+ }
25965
25893
  this.ensureUserNotSignedIn(correlationId);
25966
25894
  this.logger.verbose("Starting native auth V2 password-reset flow.", correlationId);
25967
25895
  const result = await this.flowClientV2.resetPassword({
25968
25896
  correlationId,
25969
25897
  username: inputs.username,
25898
+ scopes: inputs.scopes,
25899
+ claims: inputs.claims,
25970
25900
  });
25971
25901
  this.logger.verbose("Native auth V2 password-reset flow started.", correlationId);
25972
25902
  if (result.type === FLOW_CODE_REQUIRED_V2) {
@@ -25991,12 +25921,12 @@
25991
25921
  continuationState: result.continuationState,
25992
25922
  cacheClient: this.cacheClient,
25993
25923
  methods: result.methods,
25924
+ authenticationFactor: AuthenticationFactorV2.SINGLE_FACTOR,
25994
25925
  }), undefined, result.continuationState.scenario);
25995
25926
  }
25996
25927
  catch (error) {
25997
25928
  this.logger.errorPii(`An error occurred during native auth V2 reset-password: '${error}'`, correlationId);
25998
25929
  return CustomAuthResultV2.createWithError(error, {
25999
- errorType: ResetPasswordStartErrorV2,
26000
25930
  scenario: CustomAuthFlowScenarioV2.PasswordReset,
26001
25931
  correlationId,
26002
25932
  });
@@ -26007,6 +25937,9 @@
26007
25937
  try {
26008
25938
  ensureArgumentIsNotNullOrUndefined("inputs", inputs, correlationId);
26009
25939
  ensureArgumentIsNotEmptyString("inputs.username", inputs.username, correlationId);
25940
+ if (inputs.scopes !== undefined && inputs.scopes !== null) {
25941
+ ensureArgumentIsStringArray("inputs.scopes", inputs.scopes, correlationId);
25942
+ }
26010
25943
  if (inputs.claims) {
26011
25944
  ensureArgumentIsJSONString("inputs.claims", inputs.claims, correlationId);
26012
25945
  }
@@ -26017,19 +25950,19 @@
26017
25950
  username: inputs.username,
26018
25951
  password: inputs.password,
26019
25952
  scopes: inputs.scopes,
25953
+ claims: inputs.claims,
26020
25954
  });
26021
25955
  if (result.type === FLOW_COMPLETED_V2) {
26022
25956
  return new CustomAuthResultV2(new CompletedStateV2(), new CustomAuthAccountData(result.authenticationResult.account, this.customAuthConfig, this.cacheClient, this.logger, correlationId), CustomAuthFlowScenarioV2.SignIn);
26023
25957
  }
26024
- if (result.type === FLOW_MFA_REQUIRED_V2) {
26025
- return new CustomAuthResultV2(new MFARequiredStateV2({
25958
+ if (result.type === FLOW_PASSWORD_REQUIRED_V2) {
25959
+ return new CustomAuthResultV2(new PasswordRequiredStateV2({
26026
25960
  correlationId: result.correlationId,
26027
25961
  logger: this.logger,
26028
25962
  config: this.customAuthConfig,
26029
25963
  flowClient: this.flowClientV2,
26030
25964
  continuationState: result.continuationState,
26031
25965
  cacheClient: this.cacheClient,
26032
- methods: result.methods,
26033
25966
  }), undefined, result.continuationState.scenario);
26034
25967
  }
26035
25968
  if (result.type === FLOW_CODE_REQUIRED_V2) {
@@ -26040,20 +25973,36 @@
26040
25973
  flowClient: this.flowClientV2,
26041
25974
  continuationState: result.continuationState,
26042
25975
  cacheClient: this.cacheClient,
25976
+ signInStateTransitionHandler: this.signInStateTransitionHandlerV2,
26043
25977
  method: result.method,
26044
25978
  sentTo: result.sentTo,
26045
25979
  channel: result.channel,
26046
25980
  codeLength: result.codeLength,
26047
25981
  }), undefined, result.continuationState.scenario);
26048
25982
  }
26049
- if (result.type === FLOW_PASSWORD_REQUIRED_V2) {
26050
- return new CustomAuthResultV2(new PasswordRequiredStateV2({
25983
+ if (result.type === FLOW_METHOD_SELECTION_REQUIRED_V2) {
25984
+ return new CustomAuthResultV2(new AuthMethodSelectionRequiredStateV2({
25985
+ correlationId: result.correlationId,
25986
+ logger: this.logger,
25987
+ config: this.customAuthConfig,
25988
+ flowClient: this.flowClientV2,
25989
+ continuationState: result.continuationState,
25990
+ cacheClient: this.cacheClient,
25991
+ methods: result.methods,
25992
+ authenticationFactor: AuthenticationFactorV2.SINGLE_FACTOR,
25993
+ signInStateTransitionHandler: this.signInStateTransitionHandlerV2,
25994
+ }), undefined, result.continuationState.scenario);
25995
+ }
25996
+ if (result.type === FLOW_MFA_REQUIRED_V2) {
25997
+ return new CustomAuthResultV2(new AuthMethodSelectionRequiredStateV2({
26051
25998
  correlationId: result.correlationId,
26052
25999
  logger: this.logger,
26053
26000
  config: this.customAuthConfig,
26054
26001
  flowClient: this.flowClientV2,
26055
26002
  continuationState: result.continuationState,
26056
26003
  cacheClient: this.cacheClient,
26004
+ methods: result.methods,
26005
+ authenticationFactor: AuthenticationFactorV2.MULTI_FACTOR,
26057
26006
  }), undefined, result.continuationState.scenario);
26058
26007
  }
26059
26008
  throw new UnexpectedError("Unsupported native auth V2 sign-in result type.", correlationId);
@@ -26061,7 +26010,6 @@
26061
26010
  catch (error) {
26062
26011
  this.logger.errorPii(`An error occurred during native auth V2 sign-in: '${error}'`, correlationId);
26063
26012
  return CustomAuthResultV2.createWithError(error, {
26064
- errorType: SignInStartErrorV2,
26065
26013
  scenario: CustomAuthFlowScenarioV2.SignIn,
26066
26014
  correlationId,
26067
26015
  });
@@ -26076,6 +26024,12 @@
26076
26024
  ensureArgumentIsNotNullOrUndefined("inputs.password", inputs.password, correlationId);
26077
26025
  ensureArgumentIsNotEmptyString("inputs.password", inputs.password, correlationId);
26078
26026
  }
26027
+ if (inputs.scopes !== undefined && inputs.scopes !== null) {
26028
+ ensureArgumentIsStringArray("inputs.scopes", inputs.scopes, correlationId);
26029
+ }
26030
+ if (inputs.claims) {
26031
+ ensureArgumentIsJSONString("inputs.claims", inputs.claims, correlationId);
26032
+ }
26079
26033
  this.ensureUserNotSignedIn(correlationId);
26080
26034
  this.logger.verbose("Starting native auth V2 sign-up.", correlationId);
26081
26035
  const result = await this.flowClientV2.signUp({
@@ -26121,7 +26075,6 @@
26121
26075
  catch (error) {
26122
26076
  this.logger.errorPii(`An error occurred during native auth V2 sign-up: '${error}'`, correlationId);
26123
26077
  return CustomAuthResultV2.createWithError(error, {
26124
- errorType: SignUpStartErrorV2,
26125
26078
  scenario: CustomAuthFlowScenarioV2.SignUp,
26126
26079
  correlationId,
26127
26080
  });
@@ -27055,6 +27008,7 @@
27055
27008
 
27056
27009
  exports.AttributesRequiredStateV2 = AttributesRequiredStateV2;
27057
27010
  exports.AuthFlowActionRequiredStateBase = AuthFlowActionRequiredStateBase;
27011
+ exports.AuthFlowErrorV2 = AuthFlowErrorV2;
27058
27012
  exports.AuthFlowStateBase = AuthFlowStateBase;
27059
27013
  exports.AuthMethodRegistrationChallengeMethodError = AuthMethodRegistrationChallengeMethodError;
27060
27014
  exports.AuthMethodRegistrationChallengeMethodResult = AuthMethodRegistrationChallengeMethodResult;
@@ -27081,7 +27035,6 @@
27081
27035
  exports.HttpError = HttpError;
27082
27036
  exports.InvalidArgumentError = InvalidArgumentError;
27083
27037
  exports.InvalidConfigurationError = InvalidConfigurationError;
27084
- exports.MFARequiredStateV2 = MFARequiredStateV2;
27085
27038
  exports.MFAVerificationRequiredStateV2 = MFAVerificationRequiredStateV2;
27086
27039
  exports.MethodNotImplementedError = MethodNotImplementedError;
27087
27040
  exports.MfaAwaitingState = MfaAwaitingState;
@@ -27097,7 +27050,6 @@
27097
27050
  exports.NoCachedAccountFoundError = NoCachedAccountFoundError;
27098
27051
  exports.ParsedUrlError = ParsedUrlError;
27099
27052
  exports.PasswordRequiredStateV2 = PasswordRequiredStateV2;
27100
- exports.RequestChallengeErrorV2 = RequestChallengeErrorV2;
27101
27053
  exports.ResetPasswordCodeRequiredState = ResetPasswordCodeRequiredState;
27102
27054
  exports.ResetPasswordCompletedState = ResetPasswordCompletedState;
27103
27055
  exports.ResetPasswordError = ResetPasswordError;
@@ -27105,7 +27057,6 @@
27105
27057
  exports.ResetPasswordPasswordRequiredState = ResetPasswordPasswordRequiredState;
27106
27058
  exports.ResetPasswordResendCodeError = ResetPasswordResendCodeError;
27107
27059
  exports.ResetPasswordResendCodeResult = ResetPasswordResendCodeResult;
27108
- exports.ResetPasswordStartErrorV2 = ResetPasswordStartErrorV2;
27109
27060
  exports.ResetPasswordStartResult = ResetPasswordStartResult;
27110
27061
  exports.ResetPasswordState = ResetPasswordState;
27111
27062
  exports.ResetPasswordSubmitCodeError = ResetPasswordSubmitCodeError;
@@ -27114,7 +27065,6 @@
27114
27065
  exports.ResetPasswordSubmitPasswordResult = ResetPasswordSubmitPasswordResult;
27115
27066
  exports.SignInCodeRequiredState = SignInCodeRequiredState;
27116
27067
  exports.SignInCompletedState = SignInCompletedState;
27117
- exports.SignInContinuationErrorV2 = SignInContinuationErrorV2;
27118
27068
  exports.SignInContinuationState = SignInContinuationState;
27119
27069
  exports.SignInContinuationStateV2 = SignInContinuationStateV2;
27120
27070
  exports.SignInError = SignInError;
@@ -27123,7 +27073,6 @@
27123
27073
  exports.SignInResendCodeError = SignInResendCodeError;
27124
27074
  exports.SignInResendCodeResult = SignInResendCodeResult;
27125
27075
  exports.SignInResult = SignInResult;
27126
- exports.SignInStartErrorV2 = SignInStartErrorV2;
27127
27076
  exports.SignInState = SignInState;
27128
27077
  exports.SignInSubmitCodeError = SignInSubmitCodeError;
27129
27078
  exports.SignInSubmitCodeResult = SignInSubmitCodeResult;
@@ -27141,7 +27090,6 @@
27141
27090
  exports.SignUpResendCodeError = SignUpResendCodeError;
27142
27091
  exports.SignUpResendCodeResult = SignUpResendCodeResult;
27143
27092
  exports.SignUpResult = SignUpResult;
27144
- exports.SignUpStartErrorV2 = SignUpStartErrorV2;
27145
27093
  exports.SignUpState = SignUpState;
27146
27094
  exports.SignUpSubmitAttributesError = SignUpSubmitAttributesError;
27147
27095
  exports.SignUpSubmitAttributesResult = SignUpSubmitAttributesResult;
@@ -27149,14 +27097,10 @@
27149
27097
  exports.SignUpSubmitCodeResult = SignUpSubmitCodeResult;
27150
27098
  exports.SignUpSubmitPasswordError = SignUpSubmitPasswordError;
27151
27099
  exports.SignUpSubmitPasswordResult = SignUpSubmitPasswordResult;
27152
- exports.SubmitAttributesErrorV2 = SubmitAttributesErrorV2;
27153
- exports.SubmitNewPasswordErrorV2 = SubmitNewPasswordErrorV2;
27154
- exports.SubmitPasswordErrorV2 = SubmitPasswordErrorV2;
27155
27100
  exports.UnexpectedError = UnexpectedError;
27156
27101
  exports.UnsupportedEnvironmentError = UnsupportedEnvironmentError;
27157
27102
  exports.UserAccountAttributeError = UserAccountAttributeError;
27158
27103
  exports.UserAlreadySignedInError = UserAlreadySignedInError;
27159
- exports.VerifyChallengeErrorV2 = VerifyChallengeErrorV2;
27160
27104
 
27161
27105
  }));
27162
27106
  //# sourceMappingURL=msal-custom-auth.js.map