@azure/msal-browser 4.22.1 → 4.24.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 (766) hide show
  1. package/dist/app/IPublicClientApplication.mjs +1 -1
  2. package/dist/app/PublicClientApplication.mjs +1 -1
  3. package/dist/app/PublicClientNext.mjs +1 -1
  4. package/dist/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
  5. package/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs +1 -1
  6. package/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
  7. package/dist/broker/nativeBroker/PlatformAuthProvider.mjs +1 -1
  8. package/dist/cache/AccountManager.mjs +1 -1
  9. package/dist/cache/AsyncMemoryStorage.mjs +1 -1
  10. package/dist/cache/BrowserCacheManager.mjs +1 -1
  11. package/dist/cache/CacheHelpers.mjs +1 -1
  12. package/dist/cache/CacheKeys.mjs +1 -1
  13. package/dist/cache/CookieStorage.mjs +1 -1
  14. package/dist/cache/DatabaseStorage.mjs +1 -1
  15. package/dist/cache/EncryptedData.mjs +1 -1
  16. package/dist/cache/LocalStorage.mjs +1 -1
  17. package/dist/cache/MemoryStorage.mjs +1 -1
  18. package/dist/cache/SessionStorage.mjs +1 -1
  19. package/dist/cache/TokenCache.mjs +1 -1
  20. package/dist/config/Configuration.mjs +1 -1
  21. package/dist/controllers/ControllerFactory.mjs +1 -1
  22. package/dist/controllers/NestedAppAuthController.d.ts.map +1 -1
  23. package/dist/controllers/NestedAppAuthController.mjs +16 -15
  24. package/dist/controllers/NestedAppAuthController.mjs.map +1 -1
  25. package/dist/controllers/StandardController.d.ts.map +1 -1
  26. package/dist/controllers/StandardController.mjs +24 -51
  27. package/dist/controllers/StandardController.mjs.map +1 -1
  28. package/dist/controllers/UnknownOperatingContextController.mjs +1 -1
  29. package/dist/crypto/BrowserCrypto.mjs +1 -1
  30. package/dist/crypto/CryptoOps.mjs +1 -1
  31. package/dist/crypto/PkceGenerator.mjs +1 -1
  32. package/dist/crypto/SignedHttpRequest.mjs +1 -1
  33. package/dist/custom-auth-path/app/PublicClientApplication.mjs +1 -1
  34. package/dist/custom-auth-path/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
  35. package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthDOMHandler.mjs +1 -1
  36. package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
  37. package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthProvider.mjs +1 -1
  38. package/dist/custom-auth-path/cache/AccountManager.mjs +1 -1
  39. package/dist/custom-auth-path/cache/AsyncMemoryStorage.mjs +1 -1
  40. package/dist/custom-auth-path/cache/BrowserCacheManager.mjs +1 -1
  41. package/dist/custom-auth-path/cache/CacheHelpers.mjs +1 -1
  42. package/dist/custom-auth-path/cache/CacheKeys.mjs +1 -1
  43. package/dist/custom-auth-path/cache/CookieStorage.mjs +1 -1
  44. package/dist/custom-auth-path/cache/DatabaseStorage.mjs +1 -1
  45. package/dist/custom-auth-path/cache/EncryptedData.mjs +1 -1
  46. package/dist/custom-auth-path/cache/LocalStorage.mjs +1 -1
  47. package/dist/custom-auth-path/cache/MemoryStorage.mjs +1 -1
  48. package/dist/custom-auth-path/cache/SessionStorage.mjs +1 -1
  49. package/dist/custom-auth-path/cache/TokenCache.mjs +1 -1
  50. package/dist/custom-auth-path/config/Configuration.mjs +1 -1
  51. package/dist/custom-auth-path/controllers/ControllerFactory.mjs +1 -1
  52. package/dist/custom-auth-path/controllers/NestedAppAuthController.d.ts.map +1 -1
  53. package/dist/custom-auth-path/controllers/StandardController.d.ts.map +1 -1
  54. package/dist/custom-auth-path/controllers/StandardController.mjs +24 -51
  55. package/dist/custom-auth-path/controllers/StandardController.mjs.map +1 -1
  56. package/dist/custom-auth-path/crypto/BrowserCrypto.mjs +1 -1
  57. package/dist/custom-auth-path/crypto/CryptoOps.mjs +1 -1
  58. package/dist/custom-auth-path/crypto/PkceGenerator.mjs +1 -1
  59. package/dist/custom-auth-path/custom_auth/CustomAuthConstants.d.ts +3 -1
  60. package/dist/custom-auth-path/custom_auth/CustomAuthConstants.d.ts.map +1 -1
  61. package/dist/custom-auth-path/custom_auth/CustomAuthConstants.mjs +4 -1
  62. package/dist/custom-auth-path/custom_auth/CustomAuthConstants.mjs.map +1 -1
  63. package/dist/custom-auth-path/custom_auth/CustomAuthPublicClientApplication.mjs +1 -1
  64. package/dist/custom-auth-path/custom_auth/controller/CustomAuthStandardController.d.ts +1 -0
  65. package/dist/custom-auth-path/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
  66. package/dist/custom-auth-path/custom_auth/controller/CustomAuthStandardController.mjs +38 -5
  67. package/dist/custom-auth-path/custom_auth/controller/CustomAuthStandardController.mjs.map +1 -1
  68. package/dist/custom-auth-path/custom_auth/core/CustomAuthAuthority.mjs +1 -1
  69. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts +2 -0
  70. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts.map +1 -1
  71. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs +15 -2
  72. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs.map +1 -1
  73. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowResultBase.d.ts.map +1 -1
  74. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowResultBase.mjs +14 -2
  75. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowResultBase.mjs.map +1 -1
  76. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowState.d.ts +1 -1
  77. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowState.d.ts.map +1 -1
  78. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowState.mjs +1 -1
  79. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowState.mjs.map +1 -1
  80. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/AuthMethodDetails.d.ts +15 -0
  81. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/AuthMethodDetails.d.ts.map +1 -0
  82. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.d.ts +27 -0
  83. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.d.ts.map +1 -0
  84. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs +42 -0
  85. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs.map +1 -0
  86. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts +41 -0
  87. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts.map +1 -0
  88. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs +55 -0
  89. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs.map +1 -0
  90. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts +33 -0
  91. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts.map +1 -0
  92. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs +45 -0
  93. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs.map +1 -0
  94. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.d.ts +4 -0
  95. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.d.ts.map +1 -0
  96. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.mjs +13 -0
  97. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.mjs.map +1 -0
  98. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.d.ts +4 -0
  99. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.d.ts.map +1 -0
  100. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.mjs +13 -0
  101. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.mjs.map +1 -0
  102. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts +74 -0
  103. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts.map +1 -0
  104. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs +166 -0
  105. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs.map +1 -0
  106. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationStateParameters.d.ts +20 -0
  107. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationStateParameters.d.ts.map +1 -0
  108. package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/error_type/MfaError.d.ts +22 -0
  109. package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/error_type/MfaError.d.ts.map +1 -0
  110. package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts +36 -0
  111. package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts.map +1 -0
  112. package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts +30 -0
  113. package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts.map +1 -0
  114. package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.d.ts +7 -0
  115. package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.d.ts.map +1 -0
  116. package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaFailedState.d.ts +7 -0
  117. package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaFailedState.d.ts.map +1 -0
  118. package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts +59 -0
  119. package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts.map +1 -0
  120. package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaStateParameters.d.ts +19 -0
  121. package/dist/custom-auth-path/custom_auth/core/auth_flow/mfa/state/MfaStateParameters.d.ts.map +1 -0
  122. package/dist/custom-auth-path/custom_auth/core/error/CustomAuthApiError.mjs +1 -1
  123. package/dist/custom-auth-path/custom_auth/core/error/CustomAuthError.mjs +1 -1
  124. package/dist/custom-auth-path/custom_auth/core/error/HttpError.mjs +1 -1
  125. package/dist/custom-auth-path/custom_auth/core/error/HttpErrorCodes.mjs +1 -1
  126. package/dist/custom-auth-path/custom_auth/core/error/InvalidArgumentError.mjs +1 -1
  127. package/dist/custom-auth-path/custom_auth/core/error/InvalidConfigurationError.mjs +1 -1
  128. package/dist/custom-auth-path/custom_auth/core/error/InvalidConfigurationErrorCodes.mjs +1 -1
  129. package/dist/custom-auth-path/custom_auth/core/error/MethodNotImplementedError.mjs +1 -1
  130. package/dist/custom-auth-path/custom_auth/core/error/MsalCustomAuthError.d.ts +1 -2
  131. package/dist/custom-auth-path/custom_auth/core/error/MsalCustomAuthError.d.ts.map +1 -1
  132. package/dist/custom-auth-path/custom_auth/core/error/MsalCustomAuthError.mjs +3 -4
  133. package/dist/custom-auth-path/custom_auth/core/error/MsalCustomAuthError.mjs.map +1 -1
  134. package/dist/custom-auth-path/custom_auth/core/error/NoCachedAccountFoundError.mjs +1 -1
  135. package/dist/custom-auth-path/custom_auth/core/error/ParsedUrlError.mjs +1 -1
  136. package/dist/custom-auth-path/custom_auth/core/error/ParsedUrlErrorCodes.mjs +1 -1
  137. package/dist/custom-auth-path/custom_auth/core/error/UnexpectedError.mjs +1 -1
  138. package/dist/custom-auth-path/custom_auth/core/error/UnsupportedEnvironmentError.mjs +1 -1
  139. package/dist/custom-auth-path/custom_auth/core/error/UserAccountAttributeError.mjs +1 -1
  140. package/dist/custom-auth-path/custom_auth/core/error/UserAlreadySignedInError.mjs +1 -1
  141. package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts +10 -0
  142. package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts.map +1 -1
  143. package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs +21 -2
  144. package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs.map +1 -1
  145. package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs +1 -1
  146. package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/JitClient.d.ts +21 -0
  147. package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/JitClient.d.ts.map +1 -0
  148. package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/JitClient.mjs +105 -0
  149. package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/JitClient.mjs.map +1 -0
  150. package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/parameter/JitParams.d.ts +20 -0
  151. package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/parameter/JitParams.d.ts.map +1 -0
  152. package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts +22 -0
  153. package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts.map +1 -0
  154. package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs +24 -0
  155. package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs.map +1 -0
  156. package/dist/custom-auth-path/custom_auth/core/interaction_client/mfa/MfaClient.d.ts +21 -0
  157. package/dist/custom-auth-path/custom_auth/core/interaction_client/mfa/MfaClient.d.ts.map +1 -0
  158. package/dist/custom-auth-path/custom_auth/core/interaction_client/mfa/parameter/MfaClientParameters.d.ts +14 -0
  159. package/dist/custom-auth-path/custom_auth/core/interaction_client/mfa/parameter/MfaClientParameters.d.ts.map +1 -0
  160. package/dist/custom-auth-path/custom_auth/core/interaction_client/mfa/result/MfaActionResult.d.ts +23 -0
  161. package/dist/custom-auth-path/custom_auth/core/interaction_client/mfa/result/MfaActionResult.d.ts.map +1 -0
  162. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs +1 -1
  163. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts +2 -0
  164. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts.map +1 -1
  165. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs +3 -1
  166. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs.map +1 -1
  167. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts +4 -0
  168. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts.map +1 -1
  169. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs +7 -3
  170. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs.map +1 -1
  171. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/ICustomAuthApiClient.d.ts +2 -0
  172. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/ICustomAuthApiClient.d.ts.map +1 -1
  173. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.d.ts +18 -0
  174. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.d.ts.map +1 -0
  175. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.mjs +51 -0
  176. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.mjs.map +1 -0
  177. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs +1 -1
  178. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts +7 -2
  179. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts.map +1 -1
  180. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs +16 -4
  181. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs.map +1 -1
  182. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs +1 -1
  183. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs +1 -1
  184. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts +21 -1
  185. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts.map +1 -1
  186. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts +26 -0
  187. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts.map +1 -1
  188. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts +2 -0
  189. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts.map +1 -1
  190. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs +5 -3
  191. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs.map +1 -1
  192. package/dist/custom-auth-path/custom_auth/core/network_client/http_client/FetchHttpClient.mjs +1 -1
  193. package/dist/custom-auth-path/custom_auth/core/network_client/http_client/IHttpClient.mjs +1 -1
  194. package/dist/custom-auth-path/custom_auth/core/telemetry/PublicApiId.d.ts +4 -0
  195. package/dist/custom-auth-path/custom_auth/core/telemetry/PublicApiId.d.ts.map +1 -1
  196. package/dist/custom-auth-path/custom_auth/core/telemetry/PublicApiId.mjs +6 -3
  197. package/dist/custom-auth-path/custom_auth/core/telemetry/PublicApiId.mjs.map +1 -1
  198. package/dist/custom-auth-path/custom_auth/core/utils/ArgumentValidator.mjs +1 -1
  199. package/dist/custom-auth-path/custom_auth/core/utils/UrlUtils.mjs +1 -1
  200. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs +1 -1
  201. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs +1 -1
  202. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.mjs +1 -1
  203. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/GetAccountResult.mjs +1 -1
  204. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/SignOutResult.mjs +1 -1
  205. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/GetAccessTokenState.mjs +1 -1
  206. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/GetAccountState.mjs +1 -1
  207. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/SignOutState.mjs +1 -1
  208. package/dist/custom-auth-path/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs +1 -1
  209. package/dist/custom-auth-path/custom_auth/index.d.ts +11 -3
  210. package/dist/custom-auth-path/custom_auth/index.d.ts.map +1 -1
  211. package/dist/custom-auth-path/custom_auth/index.mjs +7 -1
  212. package/dist/custom-auth-path/custom_auth/index.mjs.map +1 -1
  213. package/dist/custom-auth-path/custom_auth/operating_context/CustomAuthOperatingContext.mjs +1 -1
  214. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs +1 -1
  215. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs +1 -1
  216. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.mjs +1 -1
  217. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.mjs +1 -1
  218. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.mjs +1 -1
  219. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.d.ts.map +1 -1
  220. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs +3 -1
  221. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs.map +1 -1
  222. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.mjs +1 -1
  223. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.mjs +1 -1
  224. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.d.ts.map +1 -1
  225. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs +2 -1
  226. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs.map +1 -1
  227. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs +1 -1
  228. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts +2 -0
  229. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts.map +1 -1
  230. package/dist/custom-auth-path/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs +1 -1
  231. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/SignInScenario.mjs +1 -1
  232. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs +1 -1
  233. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs +1 -1
  234. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts +10 -1
  235. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts.map +1 -1
  236. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResult.mjs +9 -1
  237. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResult.mjs.map +1 -1
  238. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts +10 -2
  239. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts.map +1 -1
  240. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +3 -3
  241. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs.map +1 -1
  242. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts +19 -2
  243. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts.map +1 -1
  244. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +11 -3
  245. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs.map +1 -1
  246. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.d.ts.map +1 -1
  247. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs +14 -4
  248. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs.map +1 -1
  249. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCompletedState.mjs +1 -1
  250. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInContinuationState.d.ts.map +1 -1
  251. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs +33 -4
  252. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs.map +1 -1
  253. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInFailedState.mjs +1 -1
  254. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.d.ts.map +1 -1
  255. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs +30 -4
  256. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs.map +1 -1
  257. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInState.mjs +1 -1
  258. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts +2 -0
  259. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts.map +1 -1
  260. package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/SignInClient.d.ts +14 -13
  261. package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/SignInClient.d.ts.map +1 -1
  262. package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/SignInClient.mjs +73 -31
  263. package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/SignInClient.mjs.map +1 -1
  264. package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts +13 -0
  265. package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts.map +1 -1
  266. package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs +16 -2
  267. package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs.map +1 -1
  268. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/error_type/SignUpError.mjs +1 -1
  269. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs +1 -1
  270. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpResult.mjs +1 -1
  271. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.mjs +1 -1
  272. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.mjs +1 -1
  273. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.mjs +1 -1
  274. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.d.ts.map +1 -1
  275. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs +2 -1
  276. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs.map +1 -1
  277. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.d.ts.map +1 -1
  278. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs +5 -1
  279. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs.map +1 -1
  280. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.mjs +1 -1
  281. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpFailedState.mjs +1 -1
  282. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.d.ts.map +1 -1
  283. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs +3 -1
  284. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs.map +1 -1
  285. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpState.mjs +1 -1
  286. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts +2 -0
  287. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts.map +1 -1
  288. package/dist/custom-auth-path/custom_auth/sign_up/interaction_client/SignUpClient.mjs +1 -1
  289. package/dist/custom-auth-path/custom_auth/sign_up/interaction_client/result/SignUpActionResult.mjs +1 -1
  290. package/dist/custom-auth-path/encode/Base64Decode.mjs +1 -1
  291. package/dist/custom-auth-path/encode/Base64Encode.mjs +1 -1
  292. package/dist/custom-auth-path/error/BrowserAuthError.mjs +1 -1
  293. package/dist/custom-auth-path/error/BrowserAuthErrorCodes.mjs +1 -1
  294. package/dist/custom-auth-path/error/BrowserConfigurationAuthError.mjs +1 -1
  295. package/dist/custom-auth-path/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
  296. package/dist/custom-auth-path/error/NativeAuthError.mjs +1 -1
  297. package/dist/custom-auth-path/error/NativeAuthErrorCodes.mjs +1 -1
  298. package/dist/custom-auth-path/event/EventHandler.mjs +1 -1
  299. package/dist/custom-auth-path/event/EventType.mjs +1 -1
  300. package/dist/custom-auth-path/interaction_client/BaseInteractionClient.mjs +1 -1
  301. package/dist/custom-auth-path/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
  302. package/dist/custom-auth-path/interaction_client/PlatformAuthInteractionClient.mjs +1 -1
  303. package/dist/custom-auth-path/interaction_client/PopupClient.mjs +1 -1
  304. package/dist/custom-auth-path/interaction_client/RedirectClient.mjs +1 -1
  305. package/dist/custom-auth-path/interaction_client/SilentAuthCodeClient.mjs +1 -1
  306. package/dist/custom-auth-path/interaction_client/SilentCacheClient.mjs +1 -1
  307. package/dist/custom-auth-path/interaction_client/SilentIframeClient.mjs +1 -1
  308. package/dist/custom-auth-path/interaction_client/SilentRefreshClient.mjs +1 -1
  309. package/dist/custom-auth-path/interaction_client/StandardInteractionClient.mjs +1 -1
  310. package/dist/custom-auth-path/interaction_handler/InteractionHandler.mjs +1 -1
  311. package/dist/custom-auth-path/interaction_handler/SilentHandler.mjs +1 -1
  312. package/dist/custom-auth-path/naa/TokenRequest.d.ts +1 -0
  313. package/dist/custom-auth-path/naa/TokenRequest.d.ts.map +1 -1
  314. package/dist/custom-auth-path/navigation/NavigationClient.mjs +1 -1
  315. package/dist/custom-auth-path/network/FetchClient.mjs +1 -1
  316. package/dist/custom-auth-path/operatingcontext/BaseOperatingContext.mjs +1 -1
  317. package/dist/custom-auth-path/operatingcontext/StandardOperatingContext.mjs +1 -1
  318. package/dist/custom-auth-path/packageMetadata.d.ts +1 -1
  319. package/dist/custom-auth-path/packageMetadata.mjs +2 -2
  320. package/dist/custom-auth-path/protocol/Authorize.mjs +1 -1
  321. package/dist/custom-auth-path/request/RequestHelpers.mjs +1 -1
  322. package/dist/custom-auth-path/response/ResponseHandler.mjs +1 -1
  323. package/dist/custom-auth-path/telemetry/BrowserPerformanceClient.d.ts.map +1 -1
  324. package/dist/custom-auth-path/utils/BrowserConstants.mjs +1 -1
  325. package/dist/custom-auth-path/utils/BrowserProtocolUtils.mjs +1 -1
  326. package/dist/custom-auth-path/utils/BrowserUtils.mjs +1 -1
  327. package/dist/custom-auth-path/utils/Helpers.mjs +1 -1
  328. package/dist/custom-auth-path/utils/MsalFrameStatsUtils.mjs +1 -1
  329. package/dist/custom_auth/CustomAuthConstants.d.ts +3 -1
  330. package/dist/custom_auth/CustomAuthConstants.d.ts.map +1 -1
  331. package/dist/custom_auth/controller/CustomAuthStandardController.d.ts +1 -0
  332. package/dist/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
  333. package/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts +2 -0
  334. package/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts.map +1 -1
  335. package/dist/custom_auth/core/auth_flow/AuthFlowResultBase.d.ts.map +1 -1
  336. package/dist/custom_auth/core/auth_flow/AuthFlowState.d.ts +1 -1
  337. package/dist/custom_auth/core/auth_flow/AuthFlowState.d.ts.map +1 -1
  338. package/dist/custom_auth/core/auth_flow/jit/AuthMethodDetails.d.ts +15 -0
  339. package/dist/custom_auth/core/auth_flow/jit/AuthMethodDetails.d.ts.map +1 -0
  340. package/dist/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.d.ts +27 -0
  341. package/dist/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.d.ts.map +1 -0
  342. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts +41 -0
  343. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts.map +1 -0
  344. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts +33 -0
  345. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts.map +1 -0
  346. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.d.ts +4 -0
  347. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.d.ts.map +1 -0
  348. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.d.ts +4 -0
  349. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.d.ts.map +1 -0
  350. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts +74 -0
  351. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts.map +1 -0
  352. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationStateParameters.d.ts +20 -0
  353. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationStateParameters.d.ts.map +1 -0
  354. package/dist/custom_auth/core/auth_flow/mfa/error_type/MfaError.d.ts +22 -0
  355. package/dist/custom_auth/core/auth_flow/mfa/error_type/MfaError.d.ts.map +1 -0
  356. package/dist/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts +36 -0
  357. package/dist/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts.map +1 -0
  358. package/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts +30 -0
  359. package/dist/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts.map +1 -0
  360. package/dist/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.d.ts +7 -0
  361. package/dist/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.d.ts.map +1 -0
  362. package/dist/custom_auth/core/auth_flow/mfa/state/MfaFailedState.d.ts +7 -0
  363. package/dist/custom_auth/core/auth_flow/mfa/state/MfaFailedState.d.ts.map +1 -0
  364. package/dist/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts +59 -0
  365. package/dist/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts.map +1 -0
  366. package/dist/custom_auth/core/auth_flow/mfa/state/MfaStateParameters.d.ts +19 -0
  367. package/dist/custom_auth/core/auth_flow/mfa/state/MfaStateParameters.d.ts.map +1 -0
  368. package/dist/custom_auth/core/error/MsalCustomAuthError.d.ts +1 -2
  369. package/dist/custom_auth/core/error/MsalCustomAuthError.d.ts.map +1 -1
  370. package/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts +10 -0
  371. package/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts.map +1 -1
  372. package/dist/custom_auth/core/interaction_client/jit/JitClient.d.ts +21 -0
  373. package/dist/custom_auth/core/interaction_client/jit/JitClient.d.ts.map +1 -0
  374. package/dist/custom_auth/core/interaction_client/jit/parameter/JitParams.d.ts +20 -0
  375. package/dist/custom_auth/core/interaction_client/jit/parameter/JitParams.d.ts.map +1 -0
  376. package/dist/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts +22 -0
  377. package/dist/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts.map +1 -0
  378. package/dist/custom_auth/core/interaction_client/mfa/MfaClient.d.ts +21 -0
  379. package/dist/custom_auth/core/interaction_client/mfa/MfaClient.d.ts.map +1 -0
  380. package/dist/custom_auth/core/interaction_client/mfa/parameter/MfaClientParameters.d.ts +14 -0
  381. package/dist/custom_auth/core/interaction_client/mfa/parameter/MfaClientParameters.d.ts.map +1 -0
  382. package/dist/custom_auth/core/interaction_client/mfa/result/MfaActionResult.d.ts +23 -0
  383. package/dist/custom_auth/core/interaction_client/mfa/result/MfaActionResult.d.ts.map +1 -0
  384. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts +2 -0
  385. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts.map +1 -1
  386. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts +4 -0
  387. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts.map +1 -1
  388. package/dist/custom_auth/core/network_client/custom_auth_api/ICustomAuthApiClient.d.ts +2 -0
  389. package/dist/custom_auth/core/network_client/custom_auth_api/ICustomAuthApiClient.d.ts.map +1 -1
  390. package/dist/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.d.ts +18 -0
  391. package/dist/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.d.ts.map +1 -0
  392. package/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts +7 -2
  393. package/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts.map +1 -1
  394. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts +21 -1
  395. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts.map +1 -1
  396. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts +26 -0
  397. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts.map +1 -1
  398. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts +2 -0
  399. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts.map +1 -1
  400. package/dist/custom_auth/core/telemetry/PublicApiId.d.ts +4 -0
  401. package/dist/custom_auth/core/telemetry/PublicApiId.d.ts.map +1 -1
  402. package/dist/custom_auth/index.d.ts +11 -3
  403. package/dist/custom_auth/index.d.ts.map +1 -1
  404. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.d.ts.map +1 -1
  405. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.d.ts.map +1 -1
  406. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts +2 -0
  407. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts.map +1 -1
  408. package/dist/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts +10 -1
  409. package/dist/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts.map +1 -1
  410. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts +10 -2
  411. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts.map +1 -1
  412. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts +19 -2
  413. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts.map +1 -1
  414. package/dist/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.d.ts.map +1 -1
  415. package/dist/custom_auth/sign_in/auth_flow/state/SignInContinuationState.d.ts.map +1 -1
  416. package/dist/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.d.ts.map +1 -1
  417. package/dist/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts +2 -0
  418. package/dist/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts.map +1 -1
  419. package/dist/custom_auth/sign_in/interaction_client/SignInClient.d.ts +14 -13
  420. package/dist/custom_auth/sign_in/interaction_client/SignInClient.d.ts.map +1 -1
  421. package/dist/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts +13 -0
  422. package/dist/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts.map +1 -1
  423. package/dist/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.d.ts.map +1 -1
  424. package/dist/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.d.ts.map +1 -1
  425. package/dist/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.d.ts.map +1 -1
  426. package/dist/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts +2 -0
  427. package/dist/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts.map +1 -1
  428. package/dist/encode/Base64Decode.mjs +1 -1
  429. package/dist/encode/Base64Encode.mjs +1 -1
  430. package/dist/error/BrowserAuthError.mjs +1 -1
  431. package/dist/error/BrowserAuthErrorCodes.mjs +1 -1
  432. package/dist/error/BrowserConfigurationAuthError.mjs +1 -1
  433. package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
  434. package/dist/error/NativeAuthError.mjs +1 -1
  435. package/dist/error/NativeAuthErrorCodes.mjs +1 -1
  436. package/dist/error/NestedAppAuthError.mjs +1 -1
  437. package/dist/event/EventHandler.mjs +1 -1
  438. package/dist/event/EventMessage.mjs +1 -1
  439. package/dist/event/EventType.mjs +1 -1
  440. package/dist/index.mjs +1 -1
  441. package/dist/interaction_client/BaseInteractionClient.mjs +1 -1
  442. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
  443. package/dist/interaction_client/PlatformAuthInteractionClient.mjs +1 -1
  444. package/dist/interaction_client/PopupClient.mjs +1 -1
  445. package/dist/interaction_client/RedirectClient.mjs +1 -1
  446. package/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
  447. package/dist/interaction_client/SilentCacheClient.mjs +1 -1
  448. package/dist/interaction_client/SilentIframeClient.mjs +1 -1
  449. package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
  450. package/dist/interaction_client/StandardInteractionClient.mjs +1 -1
  451. package/dist/interaction_handler/InteractionHandler.mjs +1 -1
  452. package/dist/interaction_handler/SilentHandler.mjs +1 -1
  453. package/dist/naa/BridgeError.mjs +1 -1
  454. package/dist/naa/BridgeProxy.mjs +1 -1
  455. package/dist/naa/BridgeStatusCode.mjs +1 -1
  456. package/dist/naa/TokenRequest.d.ts +1 -0
  457. package/dist/naa/TokenRequest.d.ts.map +1 -1
  458. package/dist/naa/mapping/NestedAppAuthAdapter.mjs +1 -1
  459. package/dist/navigation/NavigationClient.mjs +1 -1
  460. package/dist/network/FetchClient.mjs +1 -1
  461. package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
  462. package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
  463. package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
  464. package/dist/operatingcontext/UnknownOperatingContext.mjs +1 -1
  465. package/dist/packageMetadata.d.ts +1 -1
  466. package/dist/packageMetadata.mjs +2 -2
  467. package/dist/protocol/Authorize.mjs +1 -1
  468. package/dist/request/RequestHelpers.mjs +1 -1
  469. package/dist/response/ResponseHandler.mjs +1 -1
  470. package/dist/telemetry/BrowserPerformanceClient.d.ts.map +1 -1
  471. package/dist/telemetry/BrowserPerformanceClient.mjs +3 -3
  472. package/dist/telemetry/BrowserPerformanceClient.mjs.map +1 -1
  473. package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
  474. package/dist/utils/BrowserConstants.mjs +1 -1
  475. package/dist/utils/BrowserProtocolUtils.mjs +1 -1
  476. package/dist/utils/BrowserUtils.mjs +1 -1
  477. package/dist/utils/Helpers.mjs +1 -1
  478. package/dist/utils/MsalFrameStatsUtils.mjs +1 -1
  479. package/lib/custom-auth-path/msal-custom-auth.cjs +865 -210
  480. package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
  481. package/lib/custom-auth-path/types/controllers/NestedAppAuthController.d.ts.map +1 -1
  482. package/lib/custom-auth-path/types/controllers/StandardController.d.ts.map +1 -1
  483. package/lib/custom-auth-path/types/custom_auth/CustomAuthConstants.d.ts +3 -1
  484. package/lib/custom-auth-path/types/custom_auth/CustomAuthConstants.d.ts.map +1 -1
  485. package/lib/custom-auth-path/types/custom_auth/controller/CustomAuthStandardController.d.ts +1 -0
  486. package/lib/custom-auth-path/types/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
  487. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts +2 -0
  488. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts.map +1 -1
  489. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/AuthFlowResultBase.d.ts.map +1 -1
  490. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/AuthFlowState.d.ts +1 -1
  491. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/AuthFlowState.d.ts.map +1 -1
  492. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/AuthMethodDetails.d.ts +15 -0
  493. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/AuthMethodDetails.d.ts.map +1 -0
  494. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.d.ts +27 -0
  495. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.d.ts.map +1 -0
  496. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts +41 -0
  497. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts.map +1 -0
  498. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts +33 -0
  499. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts.map +1 -0
  500. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.d.ts +4 -0
  501. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.d.ts.map +1 -0
  502. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.d.ts +4 -0
  503. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.d.ts.map +1 -0
  504. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts +74 -0
  505. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts.map +1 -0
  506. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationStateParameters.d.ts +20 -0
  507. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationStateParameters.d.ts.map +1 -0
  508. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/error_type/MfaError.d.ts +22 -0
  509. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/error_type/MfaError.d.ts.map +1 -0
  510. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts +36 -0
  511. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts.map +1 -0
  512. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts +30 -0
  513. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts.map +1 -0
  514. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.d.ts +7 -0
  515. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.d.ts.map +1 -0
  516. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/state/MfaFailedState.d.ts +7 -0
  517. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/state/MfaFailedState.d.ts.map +1 -0
  518. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts +59 -0
  519. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts.map +1 -0
  520. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/state/MfaStateParameters.d.ts +19 -0
  521. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/mfa/state/MfaStateParameters.d.ts.map +1 -0
  522. package/lib/custom-auth-path/types/custom_auth/core/error/MsalCustomAuthError.d.ts +1 -2
  523. package/lib/custom-auth-path/types/custom_auth/core/error/MsalCustomAuthError.d.ts.map +1 -1
  524. package/lib/custom-auth-path/types/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts +10 -0
  525. package/lib/custom-auth-path/types/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts.map +1 -1
  526. package/lib/custom-auth-path/types/custom_auth/core/interaction_client/jit/JitClient.d.ts +21 -0
  527. package/lib/custom-auth-path/types/custom_auth/core/interaction_client/jit/JitClient.d.ts.map +1 -0
  528. package/lib/custom-auth-path/types/custom_auth/core/interaction_client/jit/parameter/JitParams.d.ts +20 -0
  529. package/lib/custom-auth-path/types/custom_auth/core/interaction_client/jit/parameter/JitParams.d.ts.map +1 -0
  530. package/lib/custom-auth-path/types/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts +22 -0
  531. package/lib/custom-auth-path/types/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts.map +1 -0
  532. package/lib/custom-auth-path/types/custom_auth/core/interaction_client/mfa/MfaClient.d.ts +21 -0
  533. package/lib/custom-auth-path/types/custom_auth/core/interaction_client/mfa/MfaClient.d.ts.map +1 -0
  534. package/lib/custom-auth-path/types/custom_auth/core/interaction_client/mfa/parameter/MfaClientParameters.d.ts +14 -0
  535. package/lib/custom-auth-path/types/custom_auth/core/interaction_client/mfa/parameter/MfaClientParameters.d.ts.map +1 -0
  536. package/lib/custom-auth-path/types/custom_auth/core/interaction_client/mfa/result/MfaActionResult.d.ts +23 -0
  537. package/lib/custom-auth-path/types/custom_auth/core/interaction_client/mfa/result/MfaActionResult.d.ts.map +1 -0
  538. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts +2 -0
  539. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts.map +1 -1
  540. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts +4 -0
  541. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts.map +1 -1
  542. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/ICustomAuthApiClient.d.ts +2 -0
  543. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/ICustomAuthApiClient.d.ts.map +1 -1
  544. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.d.ts +18 -0
  545. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.d.ts.map +1 -0
  546. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts +7 -2
  547. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts.map +1 -1
  548. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts +21 -1
  549. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts.map +1 -1
  550. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts +26 -0
  551. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts.map +1 -1
  552. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts +2 -0
  553. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts.map +1 -1
  554. package/lib/custom-auth-path/types/custom_auth/core/telemetry/PublicApiId.d.ts +4 -0
  555. package/lib/custom-auth-path/types/custom_auth/core/telemetry/PublicApiId.d.ts.map +1 -1
  556. package/lib/custom-auth-path/types/custom_auth/index.d.ts +11 -3
  557. package/lib/custom-auth-path/types/custom_auth/index.d.ts.map +1 -1
  558. package/lib/custom-auth-path/types/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.d.ts.map +1 -1
  559. package/lib/custom-auth-path/types/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.d.ts.map +1 -1
  560. package/lib/custom-auth-path/types/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts +2 -0
  561. package/lib/custom-auth-path/types/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts.map +1 -1
  562. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts +10 -1
  563. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts.map +1 -1
  564. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts +10 -2
  565. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts.map +1 -1
  566. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts +19 -2
  567. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts.map +1 -1
  568. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.d.ts.map +1 -1
  569. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/state/SignInContinuationState.d.ts.map +1 -1
  570. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.d.ts.map +1 -1
  571. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts +2 -0
  572. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts.map +1 -1
  573. package/lib/custom-auth-path/types/custom_auth/sign_in/interaction_client/SignInClient.d.ts +14 -13
  574. package/lib/custom-auth-path/types/custom_auth/sign_in/interaction_client/SignInClient.d.ts.map +1 -1
  575. package/lib/custom-auth-path/types/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts +13 -0
  576. package/lib/custom-auth-path/types/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts.map +1 -1
  577. package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.d.ts.map +1 -1
  578. package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.d.ts.map +1 -1
  579. package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.d.ts.map +1 -1
  580. package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts +2 -0
  581. package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts.map +1 -1
  582. package/lib/custom-auth-path/types/naa/TokenRequest.d.ts +1 -0
  583. package/lib/custom-auth-path/types/naa/TokenRequest.d.ts.map +1 -1
  584. package/lib/custom-auth-path/types/packageMetadata.d.ts +1 -1
  585. package/lib/custom-auth-path/types/telemetry/BrowserPerformanceClient.d.ts.map +1 -1
  586. package/lib/msal-browser.cjs +134 -136
  587. package/lib/msal-browser.cjs.map +1 -1
  588. package/lib/msal-browser.js +134 -136
  589. package/lib/msal-browser.js.map +1 -1
  590. package/lib/msal-browser.min.js +60 -60
  591. package/lib/types/controllers/NestedAppAuthController.d.ts.map +1 -1
  592. package/lib/types/controllers/StandardController.d.ts.map +1 -1
  593. package/lib/types/custom_auth/CustomAuthConstants.d.ts +3 -1
  594. package/lib/types/custom_auth/CustomAuthConstants.d.ts.map +1 -1
  595. package/lib/types/custom_auth/controller/CustomAuthStandardController.d.ts +1 -0
  596. package/lib/types/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
  597. package/lib/types/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts +2 -0
  598. package/lib/types/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts.map +1 -1
  599. package/lib/types/custom_auth/core/auth_flow/AuthFlowResultBase.d.ts.map +1 -1
  600. package/lib/types/custom_auth/core/auth_flow/AuthFlowState.d.ts +1 -1
  601. package/lib/types/custom_auth/core/auth_flow/AuthFlowState.d.ts.map +1 -1
  602. package/lib/types/custom_auth/core/auth_flow/jit/AuthMethodDetails.d.ts +15 -0
  603. package/lib/types/custom_auth/core/auth_flow/jit/AuthMethodDetails.d.ts.map +1 -0
  604. package/lib/types/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.d.ts +27 -0
  605. package/lib/types/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.d.ts.map +1 -0
  606. package/lib/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts +41 -0
  607. package/lib/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts.map +1 -0
  608. package/lib/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts +33 -0
  609. package/lib/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts.map +1 -0
  610. package/lib/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.d.ts +4 -0
  611. package/lib/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.d.ts.map +1 -0
  612. package/lib/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.d.ts +4 -0
  613. package/lib/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.d.ts.map +1 -0
  614. package/lib/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts +74 -0
  615. package/lib/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts.map +1 -0
  616. package/lib/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationStateParameters.d.ts +20 -0
  617. package/lib/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationStateParameters.d.ts.map +1 -0
  618. package/lib/types/custom_auth/core/auth_flow/mfa/error_type/MfaError.d.ts +22 -0
  619. package/lib/types/custom_auth/core/auth_flow/mfa/error_type/MfaError.d.ts.map +1 -0
  620. package/lib/types/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts +36 -0
  621. package/lib/types/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.d.ts.map +1 -0
  622. package/lib/types/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts +30 -0
  623. package/lib/types/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.d.ts.map +1 -0
  624. package/lib/types/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.d.ts +7 -0
  625. package/lib/types/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.d.ts.map +1 -0
  626. package/lib/types/custom_auth/core/auth_flow/mfa/state/MfaFailedState.d.ts +7 -0
  627. package/lib/types/custom_auth/core/auth_flow/mfa/state/MfaFailedState.d.ts.map +1 -0
  628. package/lib/types/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts +59 -0
  629. package/lib/types/custom_auth/core/auth_flow/mfa/state/MfaState.d.ts.map +1 -0
  630. package/lib/types/custom_auth/core/auth_flow/mfa/state/MfaStateParameters.d.ts +19 -0
  631. package/lib/types/custom_auth/core/auth_flow/mfa/state/MfaStateParameters.d.ts.map +1 -0
  632. package/lib/types/custom_auth/core/error/MsalCustomAuthError.d.ts +1 -2
  633. package/lib/types/custom_auth/core/error/MsalCustomAuthError.d.ts.map +1 -1
  634. package/lib/types/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts +10 -0
  635. package/lib/types/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts.map +1 -1
  636. package/lib/types/custom_auth/core/interaction_client/jit/JitClient.d.ts +21 -0
  637. package/lib/types/custom_auth/core/interaction_client/jit/JitClient.d.ts.map +1 -0
  638. package/lib/types/custom_auth/core/interaction_client/jit/parameter/JitParams.d.ts +20 -0
  639. package/lib/types/custom_auth/core/interaction_client/jit/parameter/JitParams.d.ts.map +1 -0
  640. package/lib/types/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts +22 -0
  641. package/lib/types/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts.map +1 -0
  642. package/lib/types/custom_auth/core/interaction_client/mfa/MfaClient.d.ts +21 -0
  643. package/lib/types/custom_auth/core/interaction_client/mfa/MfaClient.d.ts.map +1 -0
  644. package/lib/types/custom_auth/core/interaction_client/mfa/parameter/MfaClientParameters.d.ts +14 -0
  645. package/lib/types/custom_auth/core/interaction_client/mfa/parameter/MfaClientParameters.d.ts.map +1 -0
  646. package/lib/types/custom_auth/core/interaction_client/mfa/result/MfaActionResult.d.ts +23 -0
  647. package/lib/types/custom_auth/core/interaction_client/mfa/result/MfaActionResult.d.ts.map +1 -0
  648. package/lib/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts +2 -0
  649. package/lib/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts.map +1 -1
  650. package/lib/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts +4 -0
  651. package/lib/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts.map +1 -1
  652. package/lib/types/custom_auth/core/network_client/custom_auth_api/ICustomAuthApiClient.d.ts +2 -0
  653. package/lib/types/custom_auth/core/network_client/custom_auth_api/ICustomAuthApiClient.d.ts.map +1 -1
  654. package/lib/types/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.d.ts +18 -0
  655. package/lib/types/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.d.ts.map +1 -0
  656. package/lib/types/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts +7 -2
  657. package/lib/types/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts.map +1 -1
  658. package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts +21 -1
  659. package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts.map +1 -1
  660. package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts +26 -0
  661. package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts.map +1 -1
  662. package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts +2 -0
  663. package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts.map +1 -1
  664. package/lib/types/custom_auth/core/telemetry/PublicApiId.d.ts +4 -0
  665. package/lib/types/custom_auth/core/telemetry/PublicApiId.d.ts.map +1 -1
  666. package/lib/types/custom_auth/index.d.ts +11 -3
  667. package/lib/types/custom_auth/index.d.ts.map +1 -1
  668. package/lib/types/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.d.ts.map +1 -1
  669. package/lib/types/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.d.ts.map +1 -1
  670. package/lib/types/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts +2 -0
  671. package/lib/types/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts.map +1 -1
  672. package/lib/types/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts +10 -1
  673. package/lib/types/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts.map +1 -1
  674. package/lib/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts +10 -2
  675. package/lib/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts.map +1 -1
  676. package/lib/types/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts +19 -2
  677. package/lib/types/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts.map +1 -1
  678. package/lib/types/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.d.ts.map +1 -1
  679. package/lib/types/custom_auth/sign_in/auth_flow/state/SignInContinuationState.d.ts.map +1 -1
  680. package/lib/types/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.d.ts.map +1 -1
  681. package/lib/types/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts +2 -0
  682. package/lib/types/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts.map +1 -1
  683. package/lib/types/custom_auth/sign_in/interaction_client/SignInClient.d.ts +14 -13
  684. package/lib/types/custom_auth/sign_in/interaction_client/SignInClient.d.ts.map +1 -1
  685. package/lib/types/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts +13 -0
  686. package/lib/types/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts.map +1 -1
  687. package/lib/types/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.d.ts.map +1 -1
  688. package/lib/types/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.d.ts.map +1 -1
  689. package/lib/types/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.d.ts.map +1 -1
  690. package/lib/types/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts +2 -0
  691. package/lib/types/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts.map +1 -1
  692. package/lib/types/naa/TokenRequest.d.ts +1 -0
  693. package/lib/types/naa/TokenRequest.d.ts.map +1 -1
  694. package/lib/types/packageMetadata.d.ts +1 -1
  695. package/lib/types/telemetry/BrowserPerformanceClient.d.ts.map +1 -1
  696. package/package.json +3 -3
  697. package/src/controllers/NestedAppAuthController.ts +41 -23
  698. package/src/controllers/StandardController.ts +97 -79
  699. package/src/custom_auth/CustomAuthConstants.ts +2 -0
  700. package/src/custom_auth/controller/CustomAuthStandardController.ts +62 -14
  701. package/src/custom_auth/core/auth_flow/AuthFlowErrorBase.ts +22 -1
  702. package/src/custom_auth/core/auth_flow/AuthFlowResultBase.ts +14 -0
  703. package/src/custom_auth/core/auth_flow/AuthFlowState.ts +1 -1
  704. package/src/custom_auth/core/auth_flow/jit/AuthMethodDetails.ts +21 -0
  705. package/src/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.ts +40 -0
  706. package/src/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.ts +79 -0
  707. package/src/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.ts +64 -0
  708. package/src/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.ts +8 -0
  709. package/src/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.ts +8 -0
  710. package/src/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.ts +260 -0
  711. package/src/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationStateParameters.ts +30 -0
  712. package/src/custom_auth/core/auth_flow/mfa/error_type/MfaError.ts +32 -0
  713. package/src/custom_auth/core/auth_flow/mfa/result/MfaRequestChallengeResult.ts +59 -0
  714. package/src/custom_auth/core/auth_flow/mfa/result/MfaSubmitChallengeResult.ts +52 -0
  715. package/src/custom_auth/core/auth_flow/mfa/state/MfaCompletedState.ts +11 -0
  716. package/src/custom_auth/core/auth_flow/mfa/state/MfaFailedState.ts +11 -0
  717. package/src/custom_auth/core/auth_flow/mfa/state/MfaState.ts +188 -0
  718. package/src/custom_auth/core/auth_flow/mfa/state/MfaStateParameters.ts +28 -0
  719. package/src/custom_auth/core/error/MsalCustomAuthError.ts +2 -5
  720. package/src/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.ts +46 -0
  721. package/src/custom_auth/core/interaction_client/jit/JitClient.ts +165 -0
  722. package/src/custom_auth/core/interaction_client/jit/parameter/JitParams.ts +27 -0
  723. package/src/custom_auth/core/interaction_client/jit/result/JitActionResult.ts +47 -0
  724. package/src/custom_auth/core/interaction_client/mfa/MfaClient.ts +148 -0
  725. package/src/custom_auth/core/interaction_client/mfa/parameter/MfaClientParameters.ts +20 -0
  726. package/src/custom_auth/core/interaction_client/mfa/result/MfaActionResult.ts +48 -0
  727. package/src/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.ts +7 -0
  728. package/src/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.ts +5 -0
  729. package/src/custom_auth/core/network_client/custom_auth_api/ICustomAuthApiClient.ts +2 -0
  730. package/src/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.ts +95 -0
  731. package/src/custom_auth/core/network_client/custom_auth_api/SignInApiClient.ts +29 -2
  732. package/src/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.ts +26 -1
  733. package/src/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.ts +32 -0
  734. package/src/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.ts +2 -0
  735. package/src/custom_auth/core/telemetry/PublicApiId.ts +8 -0
  736. package/src/custom_auth/index.ts +35 -4
  737. package/src/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.ts +2 -0
  738. package/src/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.ts +1 -0
  739. package/src/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.ts +2 -0
  740. package/src/custom_auth/sign_in/auth_flow/result/SignInResult.ts +14 -1
  741. package/src/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.ts +17 -2
  742. package/src/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.ts +30 -2
  743. package/src/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.ts +23 -12
  744. package/src/custom_auth/sign_in/auth_flow/state/SignInContinuationState.ts +50 -9
  745. package/src/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.ts +50 -12
  746. package/src/custom_auth/sign_in/auth_flow/state/SignInStateParameters.ts +2 -0
  747. package/src/custom_auth/sign_in/interaction_client/SignInClient.ts +166 -82
  748. package/src/custom_auth/sign_in/interaction_client/result/SignInActionResult.ts +31 -0
  749. package/src/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.ts +1 -0
  750. package/src/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.ts +4 -0
  751. package/src/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.ts +2 -0
  752. package/src/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.ts +2 -0
  753. package/src/naa/TokenRequest.ts +1 -0
  754. package/src/packageMetadata.ts +1 -1
  755. package/src/telemetry/BrowserPerformanceClient.ts +5 -2
  756. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.d.ts +0 -21
  757. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.d.ts.map +0 -1
  758. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.mjs +0 -24
  759. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.mjs.map +0 -1
  760. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.d.ts +0 -21
  761. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.d.ts.map +0 -1
  762. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.d.ts +0 -21
  763. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.d.ts.map +0 -1
  764. package/lib/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.d.ts +0 -21
  765. package/lib/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.d.ts.map +0 -1
  766. package/src/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.ts +0 -43
@@ -0,0 +1,79 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+
6
+ import { AuthFlowResultBase } from "../../AuthFlowResultBase.js";
7
+ import { AuthMethodRegistrationChallengeMethodError } from "../error_type/AuthMethodRegistrationError.js";
8
+ import type { AuthMethodVerificationRequiredState } from "../state/AuthMethodRegistrationState.js";
9
+ import { CustomAuthAccountData } from "../../../../get_account/auth_flow/CustomAuthAccountData.js";
10
+ import { AuthMethodRegistrationCompletedState } from "../state/AuthMethodRegistrationCompletedState.js";
11
+ import { AuthMethodRegistrationFailedState } from "../state/AuthMethodRegistrationFailedState.js";
12
+
13
+ /**
14
+ * Result of challenging an authentication method for registration.
15
+ * Uses base state type to avoid circular dependencies.
16
+ */
17
+ export class AuthMethodRegistrationChallengeMethodResult extends AuthFlowResultBase<
18
+ AuthMethodRegistrationChallengeMethodResultState,
19
+ AuthMethodRegistrationChallengeMethodError,
20
+ CustomAuthAccountData
21
+ > {
22
+ /**
23
+ * Creates an AuthMethodRegistrationChallengeMethodResult with an error.
24
+ * @param error The error that occurred.
25
+ * @returns The AuthMethodRegistrationChallengeMethodResult with error.
26
+ */
27
+ static createWithError(
28
+ error: unknown
29
+ ): AuthMethodRegistrationChallengeMethodResult {
30
+ const result = new AuthMethodRegistrationChallengeMethodResult(
31
+ new AuthMethodRegistrationFailedState()
32
+ );
33
+ result.error = new AuthMethodRegistrationChallengeMethodError(
34
+ AuthMethodRegistrationChallengeMethodResult.createErrorData(error)
35
+ );
36
+ return result;
37
+ }
38
+
39
+ /**
40
+ * Checks if the result indicates that verification is required.
41
+ * @returns true if verification is required, false otherwise.
42
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
43
+ */
44
+ isVerificationRequired(): boolean {
45
+ return (
46
+ this.state.constructor?.name ===
47
+ "AuthMethodVerificationRequiredState"
48
+ );
49
+ }
50
+
51
+ /**
52
+ * Checks if the result indicates that registration is completed (fast-pass scenario).
53
+ * @returns true if registration is completed, false otherwise.
54
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
55
+ */
56
+ isCompleted(): boolean {
57
+ return (
58
+ this.state.constructor?.name ===
59
+ "AuthMethodRegistrationCompletedState"
60
+ );
61
+ }
62
+
63
+ /**
64
+ * Checks if the result is in a failed state.
65
+ * @returns true if the result is failed, false otherwise.
66
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
67
+ */
68
+ isFailed(): boolean {
69
+ return this.state instanceof AuthMethodRegistrationFailedState;
70
+ }
71
+ }
72
+
73
+ /**
74
+ * Type definition for possible states in AuthMethodRegistrationChallengeMethodResult.
75
+ */
76
+ export type AuthMethodRegistrationChallengeMethodResultState =
77
+ | AuthMethodVerificationRequiredState
78
+ | AuthMethodRegistrationCompletedState
79
+ | AuthMethodRegistrationFailedState;
@@ -0,0 +1,64 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+
6
+ import { AuthFlowResultBase } from "../../AuthFlowResultBase.js";
7
+ import { AuthMethodRegistrationSubmitChallengeError } from "../error_type/AuthMethodRegistrationError.js";
8
+ import { CustomAuthAccountData } from "../../../../get_account/auth_flow/CustomAuthAccountData.js";
9
+ import { AuthMethodRegistrationFailedState } from "../state/AuthMethodRegistrationFailedState.js";
10
+ import { AuthMethodRegistrationCompletedState } from "../state/AuthMethodRegistrationCompletedState.js";
11
+
12
+ /**
13
+ * Result of submitting a challenge for authentication method registration.
14
+ */
15
+ export class AuthMethodRegistrationSubmitChallengeResult extends AuthFlowResultBase<
16
+ AuthMethodRegistrationSubmitChallengeResultState,
17
+ AuthMethodRegistrationSubmitChallengeError,
18
+ CustomAuthAccountData
19
+ > {
20
+ /**
21
+ * Creates an AuthMethodRegistrationSubmitChallengeResult with an error.
22
+ * @param error The error that occurred.
23
+ * @returns The AuthMethodRegistrationSubmitChallengeResult with error.
24
+ */
25
+ static createWithError(
26
+ error: unknown
27
+ ): AuthMethodRegistrationSubmitChallengeResult {
28
+ const result = new AuthMethodRegistrationSubmitChallengeResult(
29
+ new AuthMethodRegistrationFailedState()
30
+ );
31
+ result.error = new AuthMethodRegistrationSubmitChallengeError(
32
+ AuthMethodRegistrationSubmitChallengeResult.createErrorData(error)
33
+ );
34
+ return result;
35
+ }
36
+
37
+ /**
38
+ * Checks if the result indicates that registration is completed.
39
+ * @returns true if registration is completed, false otherwise.
40
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
41
+ */
42
+ isCompleted(): boolean {
43
+ return (
44
+ this.state.constructor?.name ===
45
+ "AuthMethodRegistrationCompletedState"
46
+ );
47
+ }
48
+
49
+ /**
50
+ * Checks if the result is in a failed state.
51
+ * @returns true if the result is failed, false otherwise.
52
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
53
+ */
54
+ isFailed(): boolean {
55
+ return this.state instanceof AuthMethodRegistrationFailedState;
56
+ }
57
+ }
58
+
59
+ /**
60
+ * Type definition for possible states in AuthMethodRegistrationSubmitChallengeResult.
61
+ */
62
+ export type AuthMethodRegistrationSubmitChallengeResultState =
63
+ | AuthMethodRegistrationCompletedState
64
+ | AuthMethodRegistrationFailedState;
@@ -0,0 +1,8 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+
6
+ import { AuthFlowStateBase } from "../../AuthFlowState.js";
7
+
8
+ export class AuthMethodRegistrationCompletedState extends AuthFlowStateBase {}
@@ -0,0 +1,8 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+
6
+ import { AuthFlowStateBase } from "../../AuthFlowState.js";
7
+
8
+ export class AuthMethodRegistrationFailedState extends AuthFlowStateBase {}
@@ -0,0 +1,260 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+
6
+ import {
7
+ AuthMethodRegistrationStateParameters,
8
+ AuthMethodRegistrationRequiredStateParameters,
9
+ AuthMethodVerificationRequiredStateParameters,
10
+ } from "./AuthMethodRegistrationStateParameters.js";
11
+ import { AuthMethodDetails } from "../AuthMethodDetails.js";
12
+ import {
13
+ JitChallengeAuthMethodParams,
14
+ JitSubmitChallengeParams,
15
+ } from "../../../interaction_client/jit/parameter/JitParams.js";
16
+ import { CustomAuthAccountData } from "../../../../get_account/auth_flow/CustomAuthAccountData.js";
17
+ import {
18
+ JIT_VERIFICATION_REQUIRED_RESULT_TYPE,
19
+ JIT_COMPLETED_RESULT_TYPE,
20
+ } from "../../../interaction_client/jit/result/JitActionResult.js";
21
+ import { UnexpectedError } from "../../../error/UnexpectedError.js";
22
+ import { AuthenticationMethod } from "../../../network_client/custom_auth_api/types/ApiResponseTypes.js";
23
+ import { AuthFlowActionRequiredStateBase } from "../../AuthFlowState.js";
24
+ import { GrantType } from "../../../../CustomAuthConstants.js";
25
+ import { AuthMethodRegistrationChallengeMethodResult } from "../result/AuthMethodRegistrationChallengeMethodResult.js";
26
+ import { AuthMethodRegistrationSubmitChallengeResult } from "../result/AuthMethodRegistrationSubmitChallengeResult.js";
27
+ import { AuthMethodRegistrationCompletedState } from "./AuthMethodRegistrationCompletedState.js";
28
+
29
+ /**
30
+ * Abstract base class for authentication method registration states.
31
+ */
32
+ abstract class AuthMethodRegistrationState<
33
+ TParameters extends AuthMethodRegistrationStateParameters
34
+ > extends AuthFlowActionRequiredStateBase<TParameters> {
35
+ /**
36
+ * Internal method to challenge an authentication method.
37
+ * @param authMethodDetails The authentication method details to challenge.
38
+ * @returns Promise that resolves to AuthMethodRegistrationChallengeMethodResult.
39
+ */
40
+ protected async challengeAuthMethodInternal(
41
+ authMethodDetails: AuthMethodDetails
42
+ ): Promise<AuthMethodRegistrationChallengeMethodResult> {
43
+ try {
44
+ this.stateParameters.logger.verbose(
45
+ `Challenging authentication method - '${authMethodDetails.authMethodType.id}' for auth method registration.`,
46
+ this.stateParameters.correlationId
47
+ );
48
+
49
+ const challengeParams: JitChallengeAuthMethodParams = {
50
+ correlationId: this.stateParameters.correlationId,
51
+ continuationToken: this.stateParameters.continuationToken ?? "",
52
+ authMethod: authMethodDetails.authMethodType,
53
+ verificationContact: authMethodDetails.verificationContact,
54
+ scopes: this.stateParameters.scopes ?? [],
55
+ username: this.stateParameters.username,
56
+ claims: this.stateParameters.claims,
57
+ };
58
+
59
+ const result =
60
+ await this.stateParameters.jitClient.challengeAuthMethod(
61
+ challengeParams
62
+ );
63
+
64
+ this.stateParameters.logger.verbose(
65
+ "Authentication method challenged successfully for auth method registration.",
66
+ this.stateParameters.correlationId
67
+ );
68
+
69
+ if (result.type === JIT_VERIFICATION_REQUIRED_RESULT_TYPE) {
70
+ // Verification required
71
+ this.stateParameters.logger.verbose(
72
+ "Auth method verification required.",
73
+ this.stateParameters.correlationId
74
+ );
75
+
76
+ return new AuthMethodRegistrationChallengeMethodResult(
77
+ new AuthMethodVerificationRequiredState({
78
+ correlationId: result.correlationId,
79
+ continuationToken: result.continuationToken,
80
+ config: this.stateParameters.config,
81
+ logger: this.stateParameters.logger,
82
+ jitClient: this.stateParameters.jitClient,
83
+ cacheClient: this.stateParameters.cacheClient,
84
+ challengeChannel: result.challengeChannel,
85
+ challengeTargetLabel: result.challengeTargetLabel,
86
+ codeLength: result.codeLength,
87
+ scopes: this.stateParameters.scopes ?? [],
88
+ username: this.stateParameters.username,
89
+ claims: this.stateParameters.claims,
90
+ })
91
+ );
92
+ } else if (result.type === JIT_COMPLETED_RESULT_TYPE) {
93
+ // Registration completed (fast-pass scenario)
94
+ this.stateParameters.logger.verbose(
95
+ "Auth method registration completed via fast-pass.",
96
+ this.stateParameters.correlationId
97
+ );
98
+
99
+ const accountInfo = new CustomAuthAccountData(
100
+ result.authenticationResult.account,
101
+ this.stateParameters.config,
102
+ this.stateParameters.cacheClient,
103
+ this.stateParameters.logger,
104
+ this.stateParameters.correlationId
105
+ );
106
+
107
+ return new AuthMethodRegistrationChallengeMethodResult(
108
+ new AuthMethodRegistrationCompletedState(),
109
+ accountInfo
110
+ );
111
+ } else {
112
+ // Handle unexpected result type with proper typing
113
+ this.stateParameters.logger.error(
114
+ "Unexpected result type from auth challenge method",
115
+ this.stateParameters.correlationId
116
+ );
117
+ throw new UnexpectedError(
118
+ "Unexpected result type from auth challenge method"
119
+ );
120
+ }
121
+ } catch (error) {
122
+ this.stateParameters.logger.error(
123
+ "Failed to challenge authentication method for auth method registration.",
124
+ this.stateParameters.correlationId
125
+ );
126
+ return AuthMethodRegistrationChallengeMethodResult.createWithError(
127
+ error
128
+ );
129
+ }
130
+ }
131
+ }
132
+
133
+ /**
134
+ * State indicating that authentication method registration is required.
135
+ */
136
+ export class AuthMethodRegistrationRequiredState extends AuthMethodRegistrationState<AuthMethodRegistrationRequiredStateParameters> {
137
+ /**
138
+ * Gets the available authentication methods for registration.
139
+ * @returns Array of available authentication methods.
140
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
141
+ */
142
+ getAuthMethods(): AuthenticationMethod[] {
143
+ return this.stateParameters.authMethods;
144
+ }
145
+
146
+ /**
147
+ * Challenges an authentication method for registration.
148
+ * @param authMethodDetails The authentication method details to challenge.
149
+ * @returns Promise that resolves to AuthMethodRegistrationChallengeMethodResult.
150
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
151
+ */
152
+ async challengeAuthMethod(
153
+ authMethodDetails: AuthMethodDetails
154
+ ): Promise<AuthMethodRegistrationChallengeMethodResult> {
155
+ return this.challengeAuthMethodInternal(authMethodDetails);
156
+ }
157
+ }
158
+
159
+ /**
160
+ * State indicating that verification is required for the challenged authentication method.
161
+ */
162
+ export class AuthMethodVerificationRequiredState extends AuthMethodRegistrationState<AuthMethodVerificationRequiredStateParameters> {
163
+ /**
164
+ * Gets the length of the expected verification code.
165
+ * @returns The code length.
166
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
167
+ */
168
+ getCodeLength(): number {
169
+ return this.stateParameters.codeLength;
170
+ }
171
+
172
+ /**
173
+ * Gets the channel through which the challenge was sent.
174
+ * @returns The challenge channel (e.g., "email").
175
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
176
+ */
177
+ getChannel(): string {
178
+ return this.stateParameters.challengeChannel;
179
+ }
180
+
181
+ /**
182
+ * Gets the target label indicating where the challenge was sent.
183
+ * @returns The challenge target label (e.g., masked email address).
184
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
185
+ */
186
+ getSentTo(): string {
187
+ return this.stateParameters.challengeTargetLabel;
188
+ }
189
+
190
+ /**
191
+ * Submits the verification challenge to complete the authentication method registration.
192
+ * @param code The verification code entered by the user.
193
+ * @returns Promise that resolves to AuthMethodRegistrationSubmitChallengeResult.
194
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
195
+ */
196
+ async submitChallenge(
197
+ code: string
198
+ ): Promise<AuthMethodRegistrationSubmitChallengeResult> {
199
+ try {
200
+ this.ensureCodeIsValid(code, this.getCodeLength());
201
+
202
+ this.stateParameters.logger.verbose(
203
+ "Submitting auth method challenge.",
204
+ this.stateParameters.correlationId
205
+ );
206
+
207
+ const submitParams: JitSubmitChallengeParams = {
208
+ correlationId: this.stateParameters.correlationId,
209
+ continuationToken: this.stateParameters.continuationToken ?? "",
210
+ scopes: this.stateParameters.scopes ?? [],
211
+ grantType: GrantType.OOB,
212
+ challenge: code,
213
+ username: this.stateParameters.username,
214
+ claims: this.stateParameters.claims,
215
+ };
216
+
217
+ const result = await this.stateParameters.jitClient.submitChallenge(
218
+ submitParams
219
+ );
220
+
221
+ this.stateParameters.logger.verbose(
222
+ "Auth method challenge submitted successfully.",
223
+ this.stateParameters.correlationId
224
+ );
225
+
226
+ const accountInfo = new CustomAuthAccountData(
227
+ result.authenticationResult.account,
228
+ this.stateParameters.config,
229
+ this.stateParameters.cacheClient,
230
+ this.stateParameters.logger,
231
+ this.stateParameters.correlationId
232
+ );
233
+
234
+ return new AuthMethodRegistrationSubmitChallengeResult(
235
+ new AuthMethodRegistrationCompletedState(),
236
+ accountInfo
237
+ );
238
+ } catch (error) {
239
+ this.stateParameters.logger.error(
240
+ "Failed to submit auth method challenge.",
241
+ this.stateParameters.correlationId
242
+ );
243
+ return AuthMethodRegistrationSubmitChallengeResult.createWithError(
244
+ error
245
+ );
246
+ }
247
+ }
248
+
249
+ /**
250
+ * Challenges a different authentication method for registration.
251
+ * @param authMethodDetails The authentication method details to challenge.
252
+ * @returns Promise that resolves to AuthMethodRegistrationChallengeMethodResult.
253
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
254
+ */
255
+ async challengeAuthMethod(
256
+ authMethodDetails: AuthMethodDetails
257
+ ): Promise<AuthMethodRegistrationChallengeMethodResult> {
258
+ return this.challengeAuthMethodInternal(authMethodDetails);
259
+ }
260
+ }
@@ -0,0 +1,30 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+
6
+ import { AuthFlowActionRequiredStateParameters } from "../../AuthFlowState.js";
7
+ import { JitClient } from "../../../interaction_client/jit/JitClient.js";
8
+ import { AuthenticationMethod } from "../../../network_client/custom_auth_api/types/ApiResponseTypes.js";
9
+ import { CustomAuthSilentCacheClient } from "../../../../get_account/interaction_client/CustomAuthSilentCacheClient.js";
10
+
11
+ export interface AuthMethodRegistrationStateParameters
12
+ extends AuthFlowActionRequiredStateParameters {
13
+ jitClient: JitClient;
14
+ cacheClient: CustomAuthSilentCacheClient;
15
+ scopes?: string[];
16
+ username?: string;
17
+ claims?: string;
18
+ }
19
+
20
+ export interface AuthMethodRegistrationRequiredStateParameters
21
+ extends AuthMethodRegistrationStateParameters {
22
+ authMethods: AuthenticationMethod[];
23
+ }
24
+
25
+ export interface AuthMethodVerificationRequiredStateParameters
26
+ extends AuthMethodRegistrationStateParameters {
27
+ challengeChannel: string;
28
+ challengeTargetLabel: string;
29
+ codeLength: number;
30
+ }
@@ -0,0 +1,32 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+
6
+ import { AuthActionErrorBase } from "../../AuthFlowErrorBase.js";
7
+
8
+ /**
9
+ * Error that occurred during MFA challenge request.
10
+ */
11
+ export class MfaRequestChallengeError extends AuthActionErrorBase {
12
+ /**
13
+ * Checks if the input for MFA challenge is incorrect.
14
+ * @returns true if the input is incorrect, false otherwise.
15
+ */
16
+ isInvalidInput(): boolean {
17
+ return this.isInvalidInputError();
18
+ }
19
+ }
20
+
21
+ /**
22
+ * Error that occurred during MFA challenge submission.
23
+ */
24
+ export class MfaSubmitChallengeError extends AuthActionErrorBase {
25
+ /**
26
+ * Checks if the submitted challenge code (e.g., OTP code) is incorrect.
27
+ * @returns true if the challenge code is invalid, false otherwise.
28
+ */
29
+ isIncorrectChallenge(): boolean {
30
+ return this.isInvalidCodeError();
31
+ }
32
+ }
@@ -0,0 +1,59 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+
6
+ import { AuthFlowResultBase } from "../../AuthFlowResultBase.js";
7
+ import { MfaRequestChallengeError } from "../error_type/MfaError.js";
8
+ import { MfaFailedState } from "../state/MfaFailedState.js";
9
+ import type { MfaVerificationRequiredState } from "../state/MfaState.js";
10
+
11
+ /**
12
+ * Result of requesting an MFA challenge.
13
+ * Uses base state type to avoid circular dependencies.
14
+ */
15
+ export class MfaRequestChallengeResult extends AuthFlowResultBase<
16
+ MfaRequestChallengeResultState,
17
+ MfaRequestChallengeError
18
+ > {
19
+ /**
20
+ * Creates an MfaRequestChallengeResult with an error.
21
+ * @param error The error that occurred.
22
+ * @returns The MfaRequestChallengeResult with error.
23
+ */
24
+ static createWithError(error: unknown): MfaRequestChallengeResult {
25
+ const result = new MfaRequestChallengeResult(new MfaFailedState());
26
+ result.error = new MfaRequestChallengeError(
27
+ MfaRequestChallengeResult.createErrorData(error)
28
+ );
29
+ return result;
30
+ }
31
+
32
+ /**
33
+ * Checks if the result indicates that verification is required.
34
+ * @returns true if verification is required, false otherwise.
35
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
36
+ */
37
+ isVerificationRequired(): boolean {
38
+ return this.state.constructor?.name === "MfaVerificationRequiredState";
39
+ }
40
+
41
+ /**
42
+ * Checks if the result is in a failed state.
43
+ * @returns true if the result is failed, false otherwise.
44
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
45
+ */
46
+ isFailed(): boolean {
47
+ return this.state instanceof MfaFailedState;
48
+ }
49
+ }
50
+
51
+ /**
52
+ * The possible states for the MfaRequestChallengeResult.
53
+ * This includes:
54
+ * - MfaVerificationRequiredState: The user needs to verify their challenge.
55
+ * - MfaFailedState: The MFA request failed.
56
+ */
57
+ export type MfaRequestChallengeResultState =
58
+ | MfaVerificationRequiredState
59
+ | MfaFailedState;
@@ -0,0 +1,52 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+
6
+ import { AuthFlowResultBase } from "../../AuthFlowResultBase.js";
7
+ import { MfaSubmitChallengeError } from "../error_type/MfaError.js";
8
+ import { CustomAuthAccountData } from "../../../../get_account/auth_flow/CustomAuthAccountData.js";
9
+ import { MfaCompletedState } from "../state/MfaCompletedState.js";
10
+ import { MfaFailedState } from "../state/MfaFailedState.js";
11
+
12
+ /**
13
+ * Result of submitting an MFA challenge.
14
+ */
15
+ export class MfaSubmitChallengeResult extends AuthFlowResultBase<
16
+ MfaSubmitChallengeResultState,
17
+ MfaSubmitChallengeError,
18
+ CustomAuthAccountData
19
+ > {
20
+ /**
21
+ * Creates an MfaSubmitChallengeResult with an error.
22
+ * @param error The error that occurred.
23
+ * @returns The MfaSubmitChallengeResult with error.
24
+ */
25
+ static createWithError(error: unknown): MfaSubmitChallengeResult {
26
+ const result = new MfaSubmitChallengeResult(new MfaFailedState());
27
+ result.error = new MfaSubmitChallengeError(
28
+ MfaSubmitChallengeResult.createErrorData(error)
29
+ );
30
+ return result;
31
+ }
32
+
33
+ /**
34
+ * Checks if the MFA flow is completed successfully.
35
+ * @returns true if completed, false otherwise.
36
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
37
+ */
38
+ isCompleted(): boolean {
39
+ return this.state instanceof MfaCompletedState;
40
+ }
41
+
42
+ /**
43
+ * Checks if the result is in a failed state.
44
+ * @returns true if the result is failed, false otherwise.
45
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
46
+ */
47
+ isFailed(): boolean {
48
+ return this.state instanceof MfaFailedState;
49
+ }
50
+ }
51
+
52
+ export type MfaSubmitChallengeResultState = MfaCompletedState | MfaFailedState;
@@ -0,0 +1,11 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+
6
+ import { AuthFlowStateBase } from "../../AuthFlowState.js";
7
+
8
+ /**
9
+ * State indicating that the MFA flow has completed successfully.
10
+ */
11
+ export class MfaCompletedState extends AuthFlowStateBase {}
@@ -0,0 +1,11 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+
6
+ import { AuthFlowStateBase } from "../../AuthFlowState.js";
7
+
8
+ /**
9
+ * State indicating that the MFA flow has failed.
10
+ */
11
+ export class MfaFailedState extends AuthFlowStateBase {}