@azure/msal-browser 4.22.0 → 4.23.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 (670) 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 +2 -1
  24. package/dist/controllers/NestedAppAuthController.mjs.map +1 -1
  25. package/dist/controllers/StandardController.mjs +1 -1
  26. package/dist/controllers/UnknownOperatingContextController.mjs +1 -1
  27. package/dist/crypto/BrowserCrypto.mjs +1 -1
  28. package/dist/crypto/CryptoOps.mjs +1 -1
  29. package/dist/crypto/PkceGenerator.mjs +1 -1
  30. package/dist/crypto/SignedHttpRequest.mjs +1 -1
  31. package/dist/custom-auth-path/app/PublicClientApplication.mjs +1 -1
  32. package/dist/custom-auth-path/broker/nativeBroker/NativeStatusCodes.mjs +1 -1
  33. package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthDOMHandler.mjs +1 -1
  34. package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthExtensionHandler.mjs +1 -1
  35. package/dist/custom-auth-path/broker/nativeBroker/PlatformAuthProvider.mjs +1 -1
  36. package/dist/custom-auth-path/cache/AccountManager.mjs +1 -1
  37. package/dist/custom-auth-path/cache/AsyncMemoryStorage.mjs +1 -1
  38. package/dist/custom-auth-path/cache/BrowserCacheManager.mjs +1 -1
  39. package/dist/custom-auth-path/cache/CacheHelpers.mjs +1 -1
  40. package/dist/custom-auth-path/cache/CacheKeys.mjs +1 -1
  41. package/dist/custom-auth-path/cache/CookieStorage.mjs +1 -1
  42. package/dist/custom-auth-path/cache/DatabaseStorage.mjs +1 -1
  43. package/dist/custom-auth-path/cache/EncryptedData.mjs +1 -1
  44. package/dist/custom-auth-path/cache/LocalStorage.mjs +1 -1
  45. package/dist/custom-auth-path/cache/MemoryStorage.mjs +1 -1
  46. package/dist/custom-auth-path/cache/SessionStorage.mjs +1 -1
  47. package/dist/custom-auth-path/cache/TokenCache.mjs +1 -1
  48. package/dist/custom-auth-path/config/Configuration.mjs +1 -1
  49. package/dist/custom-auth-path/controllers/ControllerFactory.mjs +1 -1
  50. package/dist/custom-auth-path/controllers/NestedAppAuthController.d.ts.map +1 -1
  51. package/dist/custom-auth-path/controllers/StandardController.mjs +1 -1
  52. package/dist/custom-auth-path/crypto/BrowserCrypto.mjs +1 -1
  53. package/dist/custom-auth-path/crypto/CryptoOps.mjs +1 -1
  54. package/dist/custom-auth-path/crypto/PkceGenerator.mjs +1 -1
  55. package/dist/custom-auth-path/custom_auth/CustomAuthConstants.d.ts +2 -1
  56. package/dist/custom-auth-path/custom_auth/CustomAuthConstants.d.ts.map +1 -1
  57. package/dist/custom-auth-path/custom_auth/CustomAuthConstants.mjs +3 -1
  58. package/dist/custom-auth-path/custom_auth/CustomAuthConstants.mjs.map +1 -1
  59. package/dist/custom-auth-path/custom_auth/CustomAuthPublicClientApplication.mjs +1 -1
  60. package/dist/custom-auth-path/custom_auth/controller/CustomAuthStandardController.d.ts +1 -0
  61. package/dist/custom-auth-path/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
  62. package/dist/custom-auth-path/custom_auth/controller/CustomAuthStandardController.mjs +38 -5
  63. package/dist/custom-auth-path/custom_auth/controller/CustomAuthStandardController.mjs.map +1 -1
  64. package/dist/custom-auth-path/custom_auth/core/CustomAuthAuthority.mjs +1 -1
  65. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts +1 -0
  66. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts.map +1 -1
  67. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs +6 -1
  68. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowErrorBase.mjs.map +1 -1
  69. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowResultBase.d.ts.map +1 -1
  70. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowResultBase.mjs +14 -2
  71. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowResultBase.mjs.map +1 -1
  72. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowState.d.ts +1 -1
  73. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowState.d.ts.map +1 -1
  74. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowState.mjs +1 -1
  75. package/dist/custom-auth-path/custom_auth/core/auth_flow/AuthFlowState.mjs.map +1 -1
  76. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/AuthMethodDetails.d.ts +15 -0
  77. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/AuthMethodDetails.d.ts.map +1 -0
  78. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.d.ts +22 -0
  79. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.d.ts.map +1 -0
  80. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs +35 -0
  81. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.mjs.map +1 -0
  82. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts +41 -0
  83. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts.map +1 -0
  84. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs +55 -0
  85. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.mjs.map +1 -0
  86. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts +33 -0
  87. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts.map +1 -0
  88. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs +45 -0
  89. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.mjs.map +1 -0
  90. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.d.ts +4 -0
  91. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.d.ts.map +1 -0
  92. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.mjs +13 -0
  93. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.mjs.map +1 -0
  94. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.d.ts +4 -0
  95. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.d.ts.map +1 -0
  96. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.mjs +13 -0
  97. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.mjs.map +1 -0
  98. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts +74 -0
  99. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts.map +1 -0
  100. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs +166 -0
  101. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.mjs.map +1 -0
  102. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationStateParameters.d.ts +20 -0
  103. package/dist/custom-auth-path/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationStateParameters.d.ts.map +1 -0
  104. package/dist/custom-auth-path/custom_auth/core/error/CustomAuthApiError.mjs +1 -1
  105. package/dist/custom-auth-path/custom_auth/core/error/CustomAuthError.mjs +1 -1
  106. package/dist/custom-auth-path/custom_auth/core/error/HttpError.mjs +1 -1
  107. package/dist/custom-auth-path/custom_auth/core/error/HttpErrorCodes.mjs +1 -1
  108. package/dist/custom-auth-path/custom_auth/core/error/InvalidArgumentError.mjs +1 -1
  109. package/dist/custom-auth-path/custom_auth/core/error/InvalidConfigurationError.mjs +1 -1
  110. package/dist/custom-auth-path/custom_auth/core/error/InvalidConfigurationErrorCodes.mjs +1 -1
  111. package/dist/custom-auth-path/custom_auth/core/error/MethodNotImplementedError.mjs +1 -1
  112. package/dist/custom-auth-path/custom_auth/core/error/MsalCustomAuthError.d.ts +1 -2
  113. package/dist/custom-auth-path/custom_auth/core/error/MsalCustomAuthError.d.ts.map +1 -1
  114. package/dist/custom-auth-path/custom_auth/core/error/MsalCustomAuthError.mjs +3 -4
  115. package/dist/custom-auth-path/custom_auth/core/error/MsalCustomAuthError.mjs.map +1 -1
  116. package/dist/custom-auth-path/custom_auth/core/error/NoCachedAccountFoundError.mjs +1 -1
  117. package/dist/custom-auth-path/custom_auth/core/error/ParsedUrlError.mjs +1 -1
  118. package/dist/custom-auth-path/custom_auth/core/error/ParsedUrlErrorCodes.mjs +1 -1
  119. package/dist/custom-auth-path/custom_auth/core/error/UnexpectedError.mjs +1 -1
  120. package/dist/custom-auth-path/custom_auth/core/error/UnsupportedEnvironmentError.mjs +1 -1
  121. package/dist/custom-auth-path/custom_auth/core/error/UserAccountAttributeError.mjs +1 -1
  122. package/dist/custom-auth-path/custom_auth/core/error/UserAlreadySignedInError.mjs +1 -1
  123. package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts +10 -0
  124. package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts.map +1 -1
  125. package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs +21 -2
  126. package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.mjs.map +1 -1
  127. package/dist/custom-auth-path/custom_auth/core/interaction_client/CustomAuthInterationClientFactory.mjs +1 -1
  128. package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/JitClient.d.ts +27 -0
  129. package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/JitClient.d.ts.map +1 -0
  130. package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/JitClient.mjs +127 -0
  131. package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/JitClient.mjs.map +1 -0
  132. package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/parameter/JitParams.d.ts +21 -0
  133. package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/parameter/JitParams.d.ts.map +1 -0
  134. package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts +31 -0
  135. package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts.map +1 -0
  136. package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs +31 -0
  137. package/dist/custom-auth-path/custom_auth/core/interaction_client/jit/result/JitActionResult.mjs.map +1 -0
  138. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/BaseApiClient.mjs +1 -1
  139. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts +2 -0
  140. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts.map +1 -1
  141. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs +3 -1
  142. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.mjs.map +1 -1
  143. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts +3 -0
  144. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts.map +1 -1
  145. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs +6 -3
  146. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.mjs.map +1 -1
  147. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/ICustomAuthApiClient.d.ts +2 -0
  148. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/ICustomAuthApiClient.d.ts.map +1 -1
  149. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.d.ts +18 -0
  150. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.d.ts.map +1 -0
  151. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.mjs +51 -0
  152. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.mjs.map +1 -0
  153. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/ResetPasswordApiClient.mjs +1 -1
  154. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts.map +1 -1
  155. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs +3 -2
  156. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignInApiClient.mjs.map +1 -1
  157. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/SignupApiClient.mjs +1 -1
  158. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiErrorCodes.mjs +1 -1
  159. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts +16 -1
  160. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts.map +1 -1
  161. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts +22 -0
  162. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts.map +1 -1
  163. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts +1 -0
  164. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts.map +1 -1
  165. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs +4 -3
  166. package/dist/custom-auth-path/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.mjs.map +1 -1
  167. package/dist/custom-auth-path/custom_auth/core/network_client/http_client/FetchHttpClient.mjs +1 -1
  168. package/dist/custom-auth-path/custom_auth/core/network_client/http_client/IHttpClient.mjs +1 -1
  169. package/dist/custom-auth-path/custom_auth/core/telemetry/PublicApiId.d.ts +3 -0
  170. package/dist/custom-auth-path/custom_auth/core/telemetry/PublicApiId.d.ts.map +1 -1
  171. package/dist/custom-auth-path/custom_auth/core/telemetry/PublicApiId.mjs +7 -3
  172. package/dist/custom-auth-path/custom_auth/core/telemetry/PublicApiId.mjs.map +1 -1
  173. package/dist/custom-auth-path/custom_auth/core/utils/ArgumentValidator.mjs +1 -1
  174. package/dist/custom-auth-path/custom_auth/core/utils/UrlUtils.mjs +1 -1
  175. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/CustomAuthAccountData.mjs +1 -1
  176. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/error_type/GetAccountError.mjs +1 -1
  177. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/GetAccessTokenResult.mjs +1 -1
  178. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/GetAccountResult.mjs +1 -1
  179. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/result/SignOutResult.mjs +1 -1
  180. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/GetAccessTokenState.mjs +1 -1
  181. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/GetAccountState.mjs +1 -1
  182. package/dist/custom-auth-path/custom_auth/get_account/auth_flow/state/SignOutState.mjs +1 -1
  183. package/dist/custom-auth-path/custom_auth/get_account/interaction_client/CustomAuthSilentCacheClient.mjs +1 -1
  184. package/dist/custom-auth-path/custom_auth/index.d.ts +11 -3
  185. package/dist/custom-auth-path/custom_auth/index.d.ts.map +1 -1
  186. package/dist/custom-auth-path/custom_auth/index.mjs +7 -1
  187. package/dist/custom-auth-path/custom_auth/index.mjs.map +1 -1
  188. package/dist/custom-auth-path/custom_auth/operating_context/CustomAuthOperatingContext.mjs +1 -1
  189. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/error_type/ResetPasswordError.mjs +1 -1
  190. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordResendCodeResult.mjs +1 -1
  191. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordStartResult.mjs +1 -1
  192. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitCodeResult.mjs +1 -1
  193. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/result/ResetPasswordSubmitPasswordResult.mjs +1 -1
  194. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.d.ts.map +1 -1
  195. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs +3 -1
  196. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.mjs.map +1 -1
  197. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordCompletedState.mjs +1 -1
  198. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordFailedState.mjs +1 -1
  199. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.d.ts.map +1 -1
  200. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs +2 -1
  201. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.mjs.map +1 -1
  202. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordState.mjs +1 -1
  203. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts +2 -0
  204. package/dist/custom-auth-path/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts.map +1 -1
  205. package/dist/custom-auth-path/custom_auth/reset_password/interaction_client/ResetPasswordClient.mjs +1 -1
  206. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/SignInScenario.mjs +1 -1
  207. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/error_type/SignInError.mjs +1 -1
  208. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResendCodeResult.mjs +1 -1
  209. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts +10 -1
  210. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts.map +1 -1
  211. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResult.mjs +9 -1
  212. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInResult.mjs.map +1 -1
  213. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts +10 -2
  214. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts.map +1 -1
  215. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs +3 -3
  216. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.mjs.map +1 -1
  217. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts +19 -2
  218. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts.map +1 -1
  219. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs +11 -3
  220. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.mjs.map +1 -1
  221. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.d.ts.map +1 -1
  222. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs +2 -1
  223. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.mjs.map +1 -1
  224. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInCompletedState.mjs +1 -1
  225. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInContinuationState.d.ts.map +1 -1
  226. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs +33 -4
  227. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInContinuationState.mjs.map +1 -1
  228. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInFailedState.mjs +1 -1
  229. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.d.ts.map +1 -1
  230. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs +30 -4
  231. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.mjs.map +1 -1
  232. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInState.mjs +1 -1
  233. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts +2 -0
  234. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts.map +1 -1
  235. package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/SignInClient.d.ts +11 -12
  236. package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/SignInClient.d.ts.map +1 -1
  237. package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/SignInClient.mjs +50 -30
  238. package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/SignInClient.mjs.map +1 -1
  239. package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts +7 -0
  240. package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts.map +1 -1
  241. package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs +9 -2
  242. package/dist/custom-auth-path/custom_auth/sign_in/interaction_client/result/SignInActionResult.mjs.map +1 -1
  243. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/error_type/SignUpError.mjs +1 -1
  244. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpResendCodeResult.mjs +1 -1
  245. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpResult.mjs +1 -1
  246. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitAttributesResult.mjs +1 -1
  247. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitCodeResult.mjs +1 -1
  248. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/result/SignUpSubmitPasswordResult.mjs +1 -1
  249. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.d.ts.map +1 -1
  250. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs +2 -1
  251. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.mjs.map +1 -1
  252. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.d.ts.map +1 -1
  253. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs +5 -1
  254. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.mjs.map +1 -1
  255. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpCompletedState.mjs +1 -1
  256. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpFailedState.mjs +1 -1
  257. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.d.ts.map +1 -1
  258. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs +3 -1
  259. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.mjs.map +1 -1
  260. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpState.mjs +1 -1
  261. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts +2 -0
  262. package/dist/custom-auth-path/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts.map +1 -1
  263. package/dist/custom-auth-path/custom_auth/sign_up/interaction_client/SignUpClient.mjs +1 -1
  264. package/dist/custom-auth-path/custom_auth/sign_up/interaction_client/result/SignUpActionResult.mjs +1 -1
  265. package/dist/custom-auth-path/encode/Base64Decode.mjs +1 -1
  266. package/dist/custom-auth-path/encode/Base64Encode.mjs +1 -1
  267. package/dist/custom-auth-path/error/BrowserAuthError.mjs +1 -1
  268. package/dist/custom-auth-path/error/BrowserAuthErrorCodes.mjs +1 -1
  269. package/dist/custom-auth-path/error/BrowserConfigurationAuthError.mjs +1 -1
  270. package/dist/custom-auth-path/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
  271. package/dist/custom-auth-path/error/NativeAuthError.mjs +1 -1
  272. package/dist/custom-auth-path/error/NativeAuthErrorCodes.mjs +1 -1
  273. package/dist/custom-auth-path/event/EventHandler.mjs +1 -1
  274. package/dist/custom-auth-path/event/EventType.mjs +1 -1
  275. package/dist/custom-auth-path/interaction_client/BaseInteractionClient.mjs +1 -1
  276. package/dist/custom-auth-path/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
  277. package/dist/custom-auth-path/interaction_client/PlatformAuthInteractionClient.mjs +1 -1
  278. package/dist/custom-auth-path/interaction_client/PopupClient.mjs +1 -1
  279. package/dist/custom-auth-path/interaction_client/RedirectClient.mjs +1 -1
  280. package/dist/custom-auth-path/interaction_client/SilentAuthCodeClient.mjs +1 -1
  281. package/dist/custom-auth-path/interaction_client/SilentCacheClient.mjs +1 -1
  282. package/dist/custom-auth-path/interaction_client/SilentIframeClient.mjs +1 -1
  283. package/dist/custom-auth-path/interaction_client/SilentRefreshClient.mjs +1 -1
  284. package/dist/custom-auth-path/interaction_client/StandardInteractionClient.mjs +1 -1
  285. package/dist/custom-auth-path/interaction_handler/InteractionHandler.mjs +1 -1
  286. package/dist/custom-auth-path/interaction_handler/SilentHandler.mjs +1 -1
  287. package/dist/custom-auth-path/naa/TokenRequest.d.ts +1 -0
  288. package/dist/custom-auth-path/naa/TokenRequest.d.ts.map +1 -1
  289. package/dist/custom-auth-path/navigation/NavigationClient.mjs +1 -1
  290. package/dist/custom-auth-path/network/FetchClient.mjs +1 -1
  291. package/dist/custom-auth-path/operatingcontext/BaseOperatingContext.mjs +1 -1
  292. package/dist/custom-auth-path/operatingcontext/StandardOperatingContext.mjs +1 -1
  293. package/dist/custom-auth-path/packageMetadata.d.ts +1 -1
  294. package/dist/custom-auth-path/packageMetadata.mjs +2 -2
  295. package/dist/custom-auth-path/protocol/Authorize.mjs +1 -1
  296. package/dist/custom-auth-path/request/RequestHelpers.mjs +1 -1
  297. package/dist/custom-auth-path/response/ResponseHandler.mjs +1 -1
  298. package/dist/custom-auth-path/utils/BrowserConstants.mjs +1 -1
  299. package/dist/custom-auth-path/utils/BrowserProtocolUtils.mjs +1 -1
  300. package/dist/custom-auth-path/utils/BrowserUtils.d.ts +2 -1
  301. package/dist/custom-auth-path/utils/BrowserUtils.d.ts.map +1 -1
  302. package/dist/custom-auth-path/utils/BrowserUtils.mjs +1 -1
  303. package/dist/custom-auth-path/utils/BrowserUtils.mjs.map +1 -1
  304. package/dist/custom-auth-path/utils/Helpers.mjs +1 -1
  305. package/dist/custom-auth-path/utils/MsalFrameStatsUtils.mjs +1 -1
  306. package/dist/custom_auth/CustomAuthConstants.d.ts +2 -1
  307. package/dist/custom_auth/CustomAuthConstants.d.ts.map +1 -1
  308. package/dist/custom_auth/controller/CustomAuthStandardController.d.ts +1 -0
  309. package/dist/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
  310. package/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts +1 -0
  311. package/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts.map +1 -1
  312. package/dist/custom_auth/core/auth_flow/AuthFlowResultBase.d.ts.map +1 -1
  313. package/dist/custom_auth/core/auth_flow/AuthFlowState.d.ts +1 -1
  314. package/dist/custom_auth/core/auth_flow/AuthFlowState.d.ts.map +1 -1
  315. package/dist/custom_auth/core/auth_flow/jit/AuthMethodDetails.d.ts +15 -0
  316. package/dist/custom_auth/core/auth_flow/jit/AuthMethodDetails.d.ts.map +1 -0
  317. package/dist/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.d.ts +22 -0
  318. package/dist/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.d.ts.map +1 -0
  319. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts +41 -0
  320. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts.map +1 -0
  321. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts +33 -0
  322. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts.map +1 -0
  323. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.d.ts +4 -0
  324. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.d.ts.map +1 -0
  325. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.d.ts +4 -0
  326. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.d.ts.map +1 -0
  327. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts +74 -0
  328. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts.map +1 -0
  329. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationStateParameters.d.ts +20 -0
  330. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationStateParameters.d.ts.map +1 -0
  331. package/dist/custom_auth/core/error/MsalCustomAuthError.d.ts +1 -2
  332. package/dist/custom_auth/core/error/MsalCustomAuthError.d.ts.map +1 -1
  333. package/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts +10 -0
  334. package/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts.map +1 -1
  335. package/dist/custom_auth/core/interaction_client/jit/JitClient.d.ts +27 -0
  336. package/dist/custom_auth/core/interaction_client/jit/JitClient.d.ts.map +1 -0
  337. package/dist/custom_auth/core/interaction_client/jit/parameter/JitParams.d.ts +21 -0
  338. package/dist/custom_auth/core/interaction_client/jit/parameter/JitParams.d.ts.map +1 -0
  339. package/dist/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts +31 -0
  340. package/dist/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts.map +1 -0
  341. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts +2 -0
  342. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts.map +1 -1
  343. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts +3 -0
  344. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts.map +1 -1
  345. package/dist/custom_auth/core/network_client/custom_auth_api/ICustomAuthApiClient.d.ts +2 -0
  346. package/dist/custom_auth/core/network_client/custom_auth_api/ICustomAuthApiClient.d.ts.map +1 -1
  347. package/dist/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.d.ts +18 -0
  348. package/dist/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.d.ts.map +1 -0
  349. package/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts.map +1 -1
  350. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts +16 -1
  351. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts.map +1 -1
  352. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts +22 -0
  353. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts.map +1 -1
  354. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts +1 -0
  355. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts.map +1 -1
  356. package/dist/custom_auth/core/telemetry/PublicApiId.d.ts +3 -0
  357. package/dist/custom_auth/core/telemetry/PublicApiId.d.ts.map +1 -1
  358. package/dist/custom_auth/index.d.ts +11 -3
  359. package/dist/custom_auth/index.d.ts.map +1 -1
  360. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.d.ts.map +1 -1
  361. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.d.ts.map +1 -1
  362. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts +2 -0
  363. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts.map +1 -1
  364. package/dist/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts +10 -1
  365. package/dist/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts.map +1 -1
  366. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts +10 -2
  367. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts.map +1 -1
  368. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts +19 -2
  369. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts.map +1 -1
  370. package/dist/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.d.ts.map +1 -1
  371. package/dist/custom_auth/sign_in/auth_flow/state/SignInContinuationState.d.ts.map +1 -1
  372. package/dist/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.d.ts.map +1 -1
  373. package/dist/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts +2 -0
  374. package/dist/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts.map +1 -1
  375. package/dist/custom_auth/sign_in/interaction_client/SignInClient.d.ts +11 -12
  376. package/dist/custom_auth/sign_in/interaction_client/SignInClient.d.ts.map +1 -1
  377. package/dist/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts +7 -0
  378. package/dist/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts.map +1 -1
  379. package/dist/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.d.ts.map +1 -1
  380. package/dist/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.d.ts.map +1 -1
  381. package/dist/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.d.ts.map +1 -1
  382. package/dist/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts +2 -0
  383. package/dist/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts.map +1 -1
  384. package/dist/encode/Base64Decode.mjs +1 -1
  385. package/dist/encode/Base64Encode.mjs +1 -1
  386. package/dist/error/BrowserAuthError.mjs +1 -1
  387. package/dist/error/BrowserAuthErrorCodes.mjs +1 -1
  388. package/dist/error/BrowserConfigurationAuthError.mjs +1 -1
  389. package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
  390. package/dist/error/NativeAuthError.mjs +1 -1
  391. package/dist/error/NativeAuthErrorCodes.mjs +1 -1
  392. package/dist/error/NestedAppAuthError.mjs +1 -1
  393. package/dist/event/EventHandler.mjs +1 -1
  394. package/dist/event/EventMessage.mjs +1 -1
  395. package/dist/event/EventType.mjs +1 -1
  396. package/dist/index.mjs +1 -1
  397. package/dist/interaction_client/BaseInteractionClient.mjs +1 -1
  398. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
  399. package/dist/interaction_client/PlatformAuthInteractionClient.mjs +1 -1
  400. package/dist/interaction_client/PopupClient.mjs +1 -1
  401. package/dist/interaction_client/RedirectClient.mjs +1 -1
  402. package/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
  403. package/dist/interaction_client/SilentCacheClient.mjs +1 -1
  404. package/dist/interaction_client/SilentIframeClient.mjs +1 -1
  405. package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
  406. package/dist/interaction_client/StandardInteractionClient.mjs +1 -1
  407. package/dist/interaction_handler/InteractionHandler.mjs +1 -1
  408. package/dist/interaction_handler/SilentHandler.mjs +1 -1
  409. package/dist/naa/BridgeError.mjs +1 -1
  410. package/dist/naa/BridgeProxy.mjs +1 -1
  411. package/dist/naa/BridgeStatusCode.mjs +1 -1
  412. package/dist/naa/TokenRequest.d.ts +1 -0
  413. package/dist/naa/TokenRequest.d.ts.map +1 -1
  414. package/dist/naa/mapping/NestedAppAuthAdapter.mjs +1 -1
  415. package/dist/navigation/NavigationClient.mjs +1 -1
  416. package/dist/network/FetchClient.mjs +1 -1
  417. package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
  418. package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
  419. package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
  420. package/dist/operatingcontext/UnknownOperatingContext.mjs +1 -1
  421. package/dist/packageMetadata.d.ts +1 -1
  422. package/dist/packageMetadata.mjs +2 -2
  423. package/dist/protocol/Authorize.mjs +1 -1
  424. package/dist/request/RequestHelpers.mjs +1 -1
  425. package/dist/response/ResponseHandler.mjs +1 -1
  426. package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
  427. package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
  428. package/dist/utils/BrowserConstants.mjs +1 -1
  429. package/dist/utils/BrowserProtocolUtils.mjs +1 -1
  430. package/dist/utils/BrowserUtils.d.ts +2 -1
  431. package/dist/utils/BrowserUtils.d.ts.map +1 -1
  432. package/dist/utils/BrowserUtils.mjs +5 -4
  433. package/dist/utils/BrowserUtils.mjs.map +1 -1
  434. package/dist/utils/Helpers.mjs +1 -1
  435. package/dist/utils/MsalFrameStatsUtils.mjs +1 -1
  436. package/lib/custom-auth-path/msal-custom-auth.cjs +794 -154
  437. package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
  438. package/lib/custom-auth-path/types/controllers/NestedAppAuthController.d.ts.map +1 -1
  439. package/lib/custom-auth-path/types/custom_auth/CustomAuthConstants.d.ts +2 -1
  440. package/lib/custom-auth-path/types/custom_auth/CustomAuthConstants.d.ts.map +1 -1
  441. package/lib/custom-auth-path/types/custom_auth/controller/CustomAuthStandardController.d.ts +1 -0
  442. package/lib/custom-auth-path/types/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
  443. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts +1 -0
  444. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts.map +1 -1
  445. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/AuthFlowResultBase.d.ts.map +1 -1
  446. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/AuthFlowState.d.ts +1 -1
  447. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/AuthFlowState.d.ts.map +1 -1
  448. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/AuthMethodDetails.d.ts +15 -0
  449. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/AuthMethodDetails.d.ts.map +1 -0
  450. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.d.ts +22 -0
  451. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.d.ts.map +1 -0
  452. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts +41 -0
  453. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts.map +1 -0
  454. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts +33 -0
  455. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts.map +1 -0
  456. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.d.ts +4 -0
  457. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.d.ts.map +1 -0
  458. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.d.ts +4 -0
  459. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.d.ts.map +1 -0
  460. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts +74 -0
  461. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts.map +1 -0
  462. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationStateParameters.d.ts +20 -0
  463. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationStateParameters.d.ts.map +1 -0
  464. package/lib/custom-auth-path/types/custom_auth/core/error/MsalCustomAuthError.d.ts +1 -2
  465. package/lib/custom-auth-path/types/custom_auth/core/error/MsalCustomAuthError.d.ts.map +1 -1
  466. package/lib/custom-auth-path/types/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts +10 -0
  467. package/lib/custom-auth-path/types/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts.map +1 -1
  468. package/lib/custom-auth-path/types/custom_auth/core/interaction_client/jit/JitClient.d.ts +27 -0
  469. package/lib/custom-auth-path/types/custom_auth/core/interaction_client/jit/JitClient.d.ts.map +1 -0
  470. package/lib/custom-auth-path/types/custom_auth/core/interaction_client/jit/parameter/JitParams.d.ts +21 -0
  471. package/lib/custom-auth-path/types/custom_auth/core/interaction_client/jit/parameter/JitParams.d.ts.map +1 -0
  472. package/lib/custom-auth-path/types/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts +31 -0
  473. package/lib/custom-auth-path/types/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts.map +1 -0
  474. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts +2 -0
  475. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts.map +1 -1
  476. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts +3 -0
  477. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts.map +1 -1
  478. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/ICustomAuthApiClient.d.ts +2 -0
  479. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/ICustomAuthApiClient.d.ts.map +1 -1
  480. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.d.ts +18 -0
  481. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.d.ts.map +1 -0
  482. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts.map +1 -1
  483. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts +16 -1
  484. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts.map +1 -1
  485. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts +22 -0
  486. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts.map +1 -1
  487. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts +1 -0
  488. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts.map +1 -1
  489. package/lib/custom-auth-path/types/custom_auth/core/telemetry/PublicApiId.d.ts +3 -0
  490. package/lib/custom-auth-path/types/custom_auth/core/telemetry/PublicApiId.d.ts.map +1 -1
  491. package/lib/custom-auth-path/types/custom_auth/index.d.ts +11 -3
  492. package/lib/custom-auth-path/types/custom_auth/index.d.ts.map +1 -1
  493. package/lib/custom-auth-path/types/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.d.ts.map +1 -1
  494. package/lib/custom-auth-path/types/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.d.ts.map +1 -1
  495. package/lib/custom-auth-path/types/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts +2 -0
  496. package/lib/custom-auth-path/types/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts.map +1 -1
  497. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts +10 -1
  498. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts.map +1 -1
  499. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts +10 -2
  500. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts.map +1 -1
  501. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts +19 -2
  502. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts.map +1 -1
  503. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.d.ts.map +1 -1
  504. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/state/SignInContinuationState.d.ts.map +1 -1
  505. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.d.ts.map +1 -1
  506. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts +2 -0
  507. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts.map +1 -1
  508. package/lib/custom-auth-path/types/custom_auth/sign_in/interaction_client/SignInClient.d.ts +11 -12
  509. package/lib/custom-auth-path/types/custom_auth/sign_in/interaction_client/SignInClient.d.ts.map +1 -1
  510. package/lib/custom-auth-path/types/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts +7 -0
  511. package/lib/custom-auth-path/types/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts.map +1 -1
  512. package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.d.ts.map +1 -1
  513. package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.d.ts.map +1 -1
  514. package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.d.ts.map +1 -1
  515. package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts +2 -0
  516. package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts.map +1 -1
  517. package/lib/custom-auth-path/types/naa/TokenRequest.d.ts +1 -0
  518. package/lib/custom-auth-path/types/naa/TokenRequest.d.ts.map +1 -1
  519. package/lib/custom-auth-path/types/packageMetadata.d.ts +1 -1
  520. package/lib/custom-auth-path/types/utils/BrowserUtils.d.ts +2 -1
  521. package/lib/custom-auth-path/types/utils/BrowserUtils.d.ts.map +1 -1
  522. package/lib/msal-browser.cjs +73 -70
  523. package/lib/msal-browser.cjs.map +1 -1
  524. package/lib/msal-browser.js +73 -70
  525. package/lib/msal-browser.js.map +1 -1
  526. package/lib/msal-browser.min.js +60 -60
  527. package/lib/types/controllers/NestedAppAuthController.d.ts.map +1 -1
  528. package/lib/types/custom_auth/CustomAuthConstants.d.ts +2 -1
  529. package/lib/types/custom_auth/CustomAuthConstants.d.ts.map +1 -1
  530. package/lib/types/custom_auth/controller/CustomAuthStandardController.d.ts +1 -0
  531. package/lib/types/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
  532. package/lib/types/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts +1 -0
  533. package/lib/types/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts.map +1 -1
  534. package/lib/types/custom_auth/core/auth_flow/AuthFlowResultBase.d.ts.map +1 -1
  535. package/lib/types/custom_auth/core/auth_flow/AuthFlowState.d.ts +1 -1
  536. package/lib/types/custom_auth/core/auth_flow/AuthFlowState.d.ts.map +1 -1
  537. package/lib/types/custom_auth/core/auth_flow/jit/AuthMethodDetails.d.ts +15 -0
  538. package/lib/types/custom_auth/core/auth_flow/jit/AuthMethodDetails.d.ts.map +1 -0
  539. package/lib/types/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.d.ts +22 -0
  540. package/lib/types/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.d.ts.map +1 -0
  541. package/lib/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts +41 -0
  542. package/lib/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts.map +1 -0
  543. package/lib/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts +33 -0
  544. package/lib/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts.map +1 -0
  545. package/lib/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.d.ts +4 -0
  546. package/lib/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.d.ts.map +1 -0
  547. package/lib/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.d.ts +4 -0
  548. package/lib/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.d.ts.map +1 -0
  549. package/lib/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts +74 -0
  550. package/lib/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts.map +1 -0
  551. package/lib/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationStateParameters.d.ts +20 -0
  552. package/lib/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationStateParameters.d.ts.map +1 -0
  553. package/lib/types/custom_auth/core/error/MsalCustomAuthError.d.ts +1 -2
  554. package/lib/types/custom_auth/core/error/MsalCustomAuthError.d.ts.map +1 -1
  555. package/lib/types/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts +10 -0
  556. package/lib/types/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts.map +1 -1
  557. package/lib/types/custom_auth/core/interaction_client/jit/JitClient.d.ts +27 -0
  558. package/lib/types/custom_auth/core/interaction_client/jit/JitClient.d.ts.map +1 -0
  559. package/lib/types/custom_auth/core/interaction_client/jit/parameter/JitParams.d.ts +21 -0
  560. package/lib/types/custom_auth/core/interaction_client/jit/parameter/JitParams.d.ts.map +1 -0
  561. package/lib/types/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts +31 -0
  562. package/lib/types/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts.map +1 -0
  563. package/lib/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts +2 -0
  564. package/lib/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts.map +1 -1
  565. package/lib/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts +3 -0
  566. package/lib/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts.map +1 -1
  567. package/lib/types/custom_auth/core/network_client/custom_auth_api/ICustomAuthApiClient.d.ts +2 -0
  568. package/lib/types/custom_auth/core/network_client/custom_auth_api/ICustomAuthApiClient.d.ts.map +1 -1
  569. package/lib/types/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.d.ts +18 -0
  570. package/lib/types/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.d.ts.map +1 -0
  571. package/lib/types/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts.map +1 -1
  572. package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts +16 -1
  573. package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts.map +1 -1
  574. package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts +22 -0
  575. package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts.map +1 -1
  576. package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts +1 -0
  577. package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts.map +1 -1
  578. package/lib/types/custom_auth/core/telemetry/PublicApiId.d.ts +3 -0
  579. package/lib/types/custom_auth/core/telemetry/PublicApiId.d.ts.map +1 -1
  580. package/lib/types/custom_auth/index.d.ts +11 -3
  581. package/lib/types/custom_auth/index.d.ts.map +1 -1
  582. package/lib/types/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.d.ts.map +1 -1
  583. package/lib/types/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.d.ts.map +1 -1
  584. package/lib/types/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts +2 -0
  585. package/lib/types/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts.map +1 -1
  586. package/lib/types/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts +10 -1
  587. package/lib/types/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts.map +1 -1
  588. package/lib/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts +10 -2
  589. package/lib/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts.map +1 -1
  590. package/lib/types/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts +19 -2
  591. package/lib/types/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts.map +1 -1
  592. package/lib/types/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.d.ts.map +1 -1
  593. package/lib/types/custom_auth/sign_in/auth_flow/state/SignInContinuationState.d.ts.map +1 -1
  594. package/lib/types/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.d.ts.map +1 -1
  595. package/lib/types/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts +2 -0
  596. package/lib/types/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts.map +1 -1
  597. package/lib/types/custom_auth/sign_in/interaction_client/SignInClient.d.ts +11 -12
  598. package/lib/types/custom_auth/sign_in/interaction_client/SignInClient.d.ts.map +1 -1
  599. package/lib/types/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts +7 -0
  600. package/lib/types/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts.map +1 -1
  601. package/lib/types/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.d.ts.map +1 -1
  602. package/lib/types/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.d.ts.map +1 -1
  603. package/lib/types/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.d.ts.map +1 -1
  604. package/lib/types/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts +2 -0
  605. package/lib/types/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts.map +1 -1
  606. package/lib/types/naa/TokenRequest.d.ts +1 -0
  607. package/lib/types/naa/TokenRequest.d.ts.map +1 -1
  608. package/lib/types/packageMetadata.d.ts +1 -1
  609. package/lib/types/utils/BrowserUtils.d.ts +2 -1
  610. package/lib/types/utils/BrowserUtils.d.ts.map +1 -1
  611. package/package.json +2 -2
  612. package/src/controllers/NestedAppAuthController.ts +1 -0
  613. package/src/custom_auth/CustomAuthConstants.ts +1 -0
  614. package/src/custom_auth/controller/CustomAuthStandardController.ts +62 -14
  615. package/src/custom_auth/core/auth_flow/AuthFlowErrorBase.ts +8 -0
  616. package/src/custom_auth/core/auth_flow/AuthFlowResultBase.ts +14 -0
  617. package/src/custom_auth/core/auth_flow/AuthFlowState.ts +1 -1
  618. package/src/custom_auth/core/auth_flow/jit/AuthMethodDetails.ts +21 -0
  619. package/src/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.ts +32 -0
  620. package/src/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.ts +79 -0
  621. package/src/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.ts +64 -0
  622. package/src/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.ts +8 -0
  623. package/src/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.ts +8 -0
  624. package/src/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.ts +260 -0
  625. package/src/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationStateParameters.ts +30 -0
  626. package/src/custom_auth/core/error/MsalCustomAuthError.ts +2 -5
  627. package/src/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.ts +46 -0
  628. package/src/custom_auth/core/interaction_client/jit/JitClient.ts +206 -0
  629. package/src/custom_auth/core/interaction_client/jit/parameter/JitParams.ts +29 -0
  630. package/src/custom_auth/core/interaction_client/jit/result/JitActionResult.ts +67 -0
  631. package/src/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.ts +7 -0
  632. package/src/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.ts +4 -0
  633. package/src/custom_auth/core/network_client/custom_auth_api/ICustomAuthApiClient.ts +2 -0
  634. package/src/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.ts +95 -0
  635. package/src/custom_auth/core/network_client/custom_auth_api/SignInApiClient.ts +2 -1
  636. package/src/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.ts +20 -1
  637. package/src/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.ts +27 -0
  638. package/src/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.ts +1 -0
  639. package/src/custom_auth/core/telemetry/PublicApiId.ts +5 -0
  640. package/src/custom_auth/index.ts +35 -4
  641. package/src/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.ts +2 -0
  642. package/src/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.ts +1 -0
  643. package/src/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.ts +2 -0
  644. package/src/custom_auth/sign_in/auth_flow/result/SignInResult.ts +14 -1
  645. package/src/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.ts +17 -2
  646. package/src/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.ts +30 -2
  647. package/src/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.ts +1 -0
  648. package/src/custom_auth/sign_in/auth_flow/state/SignInContinuationState.ts +50 -9
  649. package/src/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.ts +50 -12
  650. package/src/custom_auth/sign_in/auth_flow/state/SignInStateParameters.ts +2 -0
  651. package/src/custom_auth/sign_in/interaction_client/SignInClient.ts +85 -83
  652. package/src/custom_auth/sign_in/interaction_client/result/SignInActionResult.ts +16 -0
  653. package/src/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.ts +1 -0
  654. package/src/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.ts +4 -0
  655. package/src/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.ts +2 -0
  656. package/src/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.ts +2 -0
  657. package/src/naa/TokenRequest.ts +1 -0
  658. package/src/packageMetadata.ts +1 -1
  659. package/src/utils/BrowserUtils.ts +8 -1
  660. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.d.ts +0 -21
  661. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.d.ts.map +0 -1
  662. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.mjs +0 -24
  663. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.mjs.map +0 -1
  664. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.d.ts +0 -21
  665. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.d.ts.map +0 -1
  666. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.d.ts +0 -21
  667. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.d.ts.map +0 -1
  668. package/lib/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.d.ts +0 -21
  669. package/lib/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.d.ts.map +0 -1
  670. package/src/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.ts +0 -43
@@ -1,8 +1,8 @@
1
- /*! @azure/msal-browser v4.22.0 2025-09-03 */
1
+ /*! @azure/msal-browser v4.23.0 2025-09-17 */
2
2
  'use strict';
3
3
  'use strict';
4
4
 
5
- /*! @azure/msal-common v15.12.0 2025-09-03 */
5
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
6
6
  /*
7
7
  * Copyright (c) Microsoft Corporation. All rights reserved.
8
8
  * Licensed under the MIT License.
@@ -276,7 +276,7 @@ const JsonWebTokenTypes = {
276
276
  // Token renewal offset default in seconds
277
277
  const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
278
278
 
279
- /*! @azure/msal-common v15.12.0 2025-09-03 */
279
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
280
280
  /*
281
281
  * Copyright (c) Microsoft Corporation. All rights reserved.
282
282
  * Licensed under the MIT License.
@@ -287,7 +287,7 @@ const DEFAULT_TOKEN_RENEWAL_OFFSET_SEC = 300;
287
287
  const unexpectedError = "unexpected_error";
288
288
  const postRequestFailed$1 = "post_request_failed";
289
289
 
290
- /*! @azure/msal-common v15.12.0 2025-09-03 */
290
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
291
291
 
292
292
  /*
293
293
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -322,7 +322,7 @@ function createAuthError(code, additionalMessage) {
322
322
  : AuthErrorMessages[code]);
323
323
  }
324
324
 
325
- /*! @azure/msal-common v15.12.0 2025-09-03 */
325
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
326
326
  /*
327
327
  * Copyright (c) Microsoft Corporation. All rights reserved.
328
328
  * Licensed under the MIT License.
@@ -372,7 +372,7 @@ const missingTenantIdError = "missing_tenant_id_error";
372
372
  const methodNotImplemented = "method_not_implemented";
373
373
  const nestedAppAuthBridgeDisabled = "nested_app_auth_bridge_disabled";
374
374
 
375
- /*! @azure/msal-common v15.12.0 2025-09-03 */
375
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
376
376
 
377
377
  /*
378
378
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -446,7 +446,7 @@ function createClientAuthError(errorCode, additionalMessage) {
446
446
  return new ClientAuthError(errorCode, additionalMessage);
447
447
  }
448
448
 
449
- /*! @azure/msal-common v15.12.0 2025-09-03 */
449
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
450
450
 
451
451
  /*
452
452
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -485,7 +485,7 @@ const DEFAULT_CRYPTO_IMPLEMENTATION = {
485
485
  },
486
486
  };
487
487
 
488
- /*! @azure/msal-common v15.12.0 2025-09-03 */
488
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
489
489
 
490
490
  /*
491
491
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -676,12 +676,12 @@ class Logger {
676
676
  }
677
677
  }
678
678
 
679
- /*! @azure/msal-common v15.12.0 2025-09-03 */
679
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
680
680
  /* eslint-disable header/header */
681
681
  const name$1 = "@azure/msal-common";
682
682
  const version$1 = "15.12.0";
683
683
 
684
- /*! @azure/msal-common v15.12.0 2025-09-03 */
684
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
685
685
  /*
686
686
  * Copyright (c) Microsoft Corporation. All rights reserved.
687
687
  * Licensed under the MIT License.
@@ -690,7 +690,7 @@ const AzureCloudInstance = {
690
690
  // AzureCloudInstance is not specified.
691
691
  None: "none"};
692
692
 
693
- /*! @azure/msal-common v15.12.0 2025-09-03 */
693
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
694
694
  /*
695
695
  * Copyright (c) Microsoft Corporation. All rights reserved.
696
696
  * Licensed under the MIT License.
@@ -719,7 +719,7 @@ const authorityMismatch = "authority_mismatch";
719
719
  const invalidRequestMethodForEAR = "invalid_request_method_for_EAR";
720
720
  const invalidAuthorizePostBodyParameters = "invalid_authorize_post_body_parameters";
721
721
 
722
- /*! @azure/msal-common v15.12.0 2025-09-03 */
722
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
723
723
 
724
724
  /*
725
725
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -764,7 +764,7 @@ function createClientConfigurationError(errorCode) {
764
764
  return new ClientConfigurationError(errorCode);
765
765
  }
766
766
 
767
- /*! @azure/msal-common v15.12.0 2025-09-03 */
767
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
768
768
  /*
769
769
  * Copyright (c) Microsoft Corporation. All rights reserved.
770
770
  * Licensed under the MIT License.
@@ -861,7 +861,7 @@ class StringUtils {
861
861
  }
862
862
  }
863
863
 
864
- /*! @azure/msal-common v15.12.0 2025-09-03 */
864
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
865
865
 
866
866
  /*
867
867
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1056,7 +1056,7 @@ class ScopeSet {
1056
1056
  }
1057
1057
  }
1058
1058
 
1059
- /*! @azure/msal-common v15.12.0 2025-09-03 */
1059
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
1060
1060
  /*
1061
1061
  * Copyright (c) Microsoft Corporation. All rights reserved.
1062
1062
  * Licensed under the MIT License.
@@ -1138,7 +1138,7 @@ function updateAccountTenantProfileData(baseAccountInfo, tenantProfile, idTokenC
1138
1138
  return updatedAccountInfo;
1139
1139
  }
1140
1140
 
1141
- /*! @azure/msal-common v15.12.0 2025-09-03 */
1141
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
1142
1142
 
1143
1143
  /*
1144
1144
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1199,7 +1199,7 @@ function checkMaxAge(authTime, maxAge) {
1199
1199
  }
1200
1200
  }
1201
1201
 
1202
- /*! @azure/msal-common v15.12.0 2025-09-03 */
1202
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
1203
1203
 
1204
1204
  /*
1205
1205
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1315,7 +1315,7 @@ function normalizeUrlForComparison(url) {
1315
1315
  }
1316
1316
  }
1317
1317
 
1318
- /*! @azure/msal-common v15.12.0 2025-09-03 */
1318
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
1319
1319
 
1320
1320
  /*
1321
1321
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1479,7 +1479,7 @@ class UrlString {
1479
1479
  }
1480
1480
  }
1481
1481
 
1482
- /*! @azure/msal-common v15.12.0 2025-09-03 */
1482
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
1483
1483
 
1484
1484
  /*
1485
1485
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1618,7 +1618,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
1618
1618
  return null;
1619
1619
  }
1620
1620
 
1621
- /*! @azure/msal-common v15.12.0 2025-09-03 */
1621
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
1622
1622
  /*
1623
1623
  * Copyright (c) Microsoft Corporation. All rights reserved.
1624
1624
  * Licensed under the MIT License.
@@ -1626,7 +1626,7 @@ function getCloudDiscoveryMetadataFromNetworkResponse(response, authorityHost) {
1626
1626
  const cacheQuotaExceeded = "cache_quota_exceeded";
1627
1627
  const cacheErrorUnknown = "cache_error_unknown";
1628
1628
 
1629
- /*! @azure/msal-common v15.12.0 2025-09-03 */
1629
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
1630
1630
 
1631
1631
  /*
1632
1632
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1671,7 +1671,7 @@ function createCacheError(e) {
1671
1671
  }
1672
1672
  }
1673
1673
 
1674
- /*! @azure/msal-common v15.12.0 2025-09-03 */
1674
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
1675
1675
 
1676
1676
  /*
1677
1677
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2779,7 +2779,7 @@ class DefaultStorageClass extends CacheManager {
2779
2779
  }
2780
2780
  }
2781
2781
 
2782
- /*! @azure/msal-common v15.12.0 2025-09-03 */
2782
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
2783
2783
  /*
2784
2784
  * Copyright (c) Microsoft Corporation. All rights reserved.
2785
2785
  * Licensed under the MIT License.
@@ -2803,7 +2803,7 @@ const ProtocolMode = {
2803
2803
  EAR: "EAR",
2804
2804
  };
2805
2805
 
2806
- /*! @azure/msal-common v15.12.0 2025-09-03 */
2806
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
2807
2807
  /*
2808
2808
  * Copyright (c) Microsoft Corporation. All rights reserved.
2809
2809
  * Licensed under the MIT License.
@@ -3070,7 +3070,7 @@ const PerformanceEvents = {
3070
3070
  const PerformanceEventStatus = {
3071
3071
  InProgress: 1};
3072
3072
 
3073
- /*! @azure/msal-common v15.12.0 2025-09-03 */
3073
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
3074
3074
 
3075
3075
  /*
3076
3076
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3149,7 +3149,7 @@ class StubPerformanceClient {
3149
3149
  }
3150
3150
  }
3151
3151
 
3152
- /*! @azure/msal-common v15.12.0 2025-09-03 */
3152
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
3153
3153
 
3154
3154
  /*
3155
3155
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3249,7 +3249,7 @@ function isOidcProtocolMode(config) {
3249
3249
  return (config.authOptions.authority.options.protocolMode === ProtocolMode.OIDC);
3250
3250
  }
3251
3251
 
3252
- /*! @azure/msal-common v15.12.0 2025-09-03 */
3252
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
3253
3253
  /*
3254
3254
  * Copyright (c) Microsoft Corporation. All rights reserved.
3255
3255
  * Licensed under the MIT License.
@@ -3259,7 +3259,7 @@ const CcsCredentialType = {
3259
3259
  UPN: "UPN",
3260
3260
  };
3261
3261
 
3262
- /*! @azure/msal-common v15.12.0 2025-09-03 */
3262
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
3263
3263
 
3264
3264
  /*
3265
3265
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3299,7 +3299,7 @@ function buildClientInfoFromHomeAccountId(homeAccountId) {
3299
3299
  };
3300
3300
  }
3301
3301
 
3302
- /*! @azure/msal-common v15.12.0 2025-09-03 */
3302
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
3303
3303
  /*
3304
3304
  * Copyright (c) Microsoft Corporation. All rights reserved.
3305
3305
  * Licensed under the MIT License.
@@ -3349,7 +3349,7 @@ const INSTANCE_AWARE = "instance_aware";
3349
3349
  const EAR_JWK = "ear_jwk";
3350
3350
  const EAR_JWE_CRYPTO = "ear_jwe_crypto";
3351
3351
 
3352
- /*! @azure/msal-common v15.12.0 2025-09-03 */
3352
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
3353
3353
 
3354
3354
  /*
3355
3355
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3729,7 +3729,7 @@ function addPostBodyParameters(parameters, bodyParameters) {
3729
3729
  });
3730
3730
  }
3731
3731
 
3732
- /*! @azure/msal-common v15.12.0 2025-09-03 */
3732
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
3733
3733
  /*
3734
3734
  * Copyright (c) Microsoft Corporation. All rights reserved.
3735
3735
  * Licensed under the MIT License.
@@ -3744,7 +3744,7 @@ const AuthorityType = {
3744
3744
  Ciam: 3,
3745
3745
  };
3746
3746
 
3747
- /*! @azure/msal-common v15.12.0 2025-09-03 */
3747
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
3748
3748
  /*
3749
3749
  * Copyright (c) Microsoft Corporation. All rights reserved.
3750
3750
  * Licensed under the MIT License.
@@ -3756,7 +3756,7 @@ function isOpenIdConfigResponse(response) {
3756
3756
  response.hasOwnProperty("jwks_uri"));
3757
3757
  }
3758
3758
 
3759
- /*! @azure/msal-common v15.12.0 2025-09-03 */
3759
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
3760
3760
  /*
3761
3761
  * Copyright (c) Microsoft Corporation. All rights reserved.
3762
3762
  * Licensed under the MIT License.
@@ -3766,7 +3766,7 @@ function isCloudInstanceDiscoveryResponse(response) {
3766
3766
  response.hasOwnProperty("metadata"));
3767
3767
  }
3768
3768
 
3769
- /*! @azure/msal-common v15.12.0 2025-09-03 */
3769
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
3770
3770
  /*
3771
3771
  * Copyright (c) Microsoft Corporation. All rights reserved.
3772
3772
  * Licensed under the MIT License.
@@ -3776,7 +3776,7 @@ function isCloudInstanceDiscoveryErrorResponse(response) {
3776
3776
  response.hasOwnProperty("error_description"));
3777
3777
  }
3778
3778
 
3779
- /*! @azure/msal-common v15.12.0 2025-09-03 */
3779
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
3780
3780
  /*
3781
3781
  * Copyright (c) Microsoft Corporation. All rights reserved.
3782
3782
  * Licensed under the MIT License.
@@ -3872,7 +3872,7 @@ const invokeAsync = (callback, eventName, logger, telemetryClient, correlationId
3872
3872
  };
3873
3873
  };
3874
3874
 
3875
- /*! @azure/msal-common v15.12.0 2025-09-03 */
3875
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
3876
3876
 
3877
3877
  /*
3878
3878
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -3978,7 +3978,7 @@ RegionDiscovery.IMDS_OPTIONS = {
3978
3978
  },
3979
3979
  };
3980
3980
 
3981
- /*! @azure/msal-common v15.12.0 2025-09-03 */
3981
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
3982
3982
  /*
3983
3983
  * Copyright (c) Microsoft Corporation. All rights reserved.
3984
3984
  * Licensed under the MIT License.
@@ -4043,7 +4043,7 @@ function wasClockTurnedBack(cachedAt) {
4043
4043
  return cachedAtSec > nowSeconds();
4044
4044
  }
4045
4045
 
4046
- /*! @azure/msal-common v15.12.0 2025-09-03 */
4046
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
4047
4047
 
4048
4048
  /*
4049
4049
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -4305,7 +4305,7 @@ function isAuthorityMetadataExpired(metadata) {
4305
4305
  return metadata.expiresAt <= nowSeconds();
4306
4306
  }
4307
4307
 
4308
- /*! @azure/msal-common v15.12.0 2025-09-03 */
4308
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
4309
4309
 
4310
4310
  /*
4311
4311
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5144,7 +5144,7 @@ function buildStaticAuthorityOptions(authOptions) {
5144
5144
  };
5145
5145
  }
5146
5146
 
5147
- /*! @azure/msal-common v15.12.0 2025-09-03 */
5147
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
5148
5148
 
5149
5149
  /*
5150
5150
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5175,7 +5175,7 @@ async function createDiscoveredInstance(authorityUri, networkClient, cacheManage
5175
5175
  }
5176
5176
  }
5177
5177
 
5178
- /*! @azure/msal-common v15.12.0 2025-09-03 */
5178
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
5179
5179
 
5180
5180
  /*
5181
5181
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5194,7 +5194,7 @@ class ServerError extends AuthError {
5194
5194
  }
5195
5195
  }
5196
5196
 
5197
- /*! @azure/msal-common v15.12.0 2025-09-03 */
5197
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
5198
5198
  /*
5199
5199
  * Copyright (c) Microsoft Corporation. All rights reserved.
5200
5200
  * Licensed under the MIT License.
@@ -5215,7 +5215,7 @@ function getRequestThumbprint(clientId, request, homeAccountId) {
5215
5215
  };
5216
5216
  }
5217
5217
 
5218
- /*! @azure/msal-common v15.12.0 2025-09-03 */
5218
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
5219
5219
 
5220
5220
  /*
5221
5221
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5302,7 +5302,7 @@ class ThrottlingUtils {
5302
5302
  }
5303
5303
  }
5304
5304
 
5305
- /*! @azure/msal-common v15.12.0 2025-09-03 */
5305
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
5306
5306
 
5307
5307
  /*
5308
5308
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5333,7 +5333,7 @@ function createNetworkError(error, httpStatus, responseHeaders, additionalError)
5333
5333
  return new NetworkError(error, httpStatus, responseHeaders);
5334
5334
  }
5335
5335
 
5336
- /*! @azure/msal-common v15.12.0 2025-09-03 */
5336
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
5337
5337
 
5338
5338
  /*
5339
5339
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5481,7 +5481,7 @@ class BaseClient {
5481
5481
  }
5482
5482
  }
5483
5483
 
5484
- /*! @azure/msal-common v15.12.0 2025-09-03 */
5484
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
5485
5485
  /*
5486
5486
  * Copyright (c) Microsoft Corporation. All rights reserved.
5487
5487
  * Licensed under the MIT License.
@@ -5503,7 +5503,7 @@ function getTenantIdFromIdTokenClaims(idTokenClaims) {
5503
5503
  return null;
5504
5504
  }
5505
5505
 
5506
- /*! @azure/msal-common v15.12.0 2025-09-03 */
5506
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
5507
5507
 
5508
5508
  /*
5509
5509
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5718,7 +5718,7 @@ class AccountEntity {
5718
5718
  }
5719
5719
  }
5720
5720
 
5721
- /*! @azure/msal-common v15.12.0 2025-09-03 */
5721
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
5722
5722
  /*
5723
5723
  * Copyright (c) Microsoft Corporation. All rights reserved.
5724
5724
  * Licensed under the MIT License.
@@ -5734,7 +5734,7 @@ const consentRequired = "consent_required";
5734
5734
  const loginRequired = "login_required";
5735
5735
  const badToken = "bad_token";
5736
5736
 
5737
- /*! @azure/msal-common v15.12.0 2025-09-03 */
5737
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
5738
5738
 
5739
5739
  /*
5740
5740
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5806,7 +5806,7 @@ function createInteractionRequiredAuthError(errorCode) {
5806
5806
  return new InteractionRequiredAuthError(errorCode, InteractionRequiredAuthErrorMessages[errorCode]);
5807
5807
  }
5808
5808
 
5809
- /*! @azure/msal-common v15.12.0 2025-09-03 */
5809
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
5810
5810
 
5811
5811
  /*
5812
5812
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5878,7 +5878,7 @@ class ProtocolUtils {
5878
5878
  }
5879
5879
  }
5880
5880
 
5881
- /*! @azure/msal-common v15.12.0 2025-09-03 */
5881
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
5882
5882
 
5883
5883
  /*
5884
5884
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5960,7 +5960,7 @@ class PopTokenGenerator {
5960
5960
  }
5961
5961
  }
5962
5962
 
5963
- /*! @azure/msal-common v15.12.0 2025-09-03 */
5963
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
5964
5964
  /*
5965
5965
  * Copyright (c) Microsoft Corporation. All rights reserved.
5966
5966
  * Licensed under the MIT License.
@@ -5987,7 +5987,7 @@ class PopTokenGenerator {
5987
5987
  }
5988
5988
  }
5989
5989
 
5990
- /*! @azure/msal-common v15.12.0 2025-09-03 */
5990
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
5991
5991
 
5992
5992
  /*
5993
5993
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6318,7 +6318,7 @@ function buildAccountToCache(cacheStorage, authority, homeAccountId, base64Decod
6318
6318
  return baseAccount;
6319
6319
  }
6320
6320
 
6321
- /*! @azure/msal-common v15.12.0 2025-09-03 */
6321
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
6322
6322
  /*
6323
6323
  * Copyright (c) Microsoft Corporation. All rights reserved.
6324
6324
  * Licensed under the MIT License.
@@ -6336,7 +6336,7 @@ async function getClientAssertion(clientAssertion, clientId, tokenEndpoint) {
6336
6336
  }
6337
6337
  }
6338
6338
 
6339
- /*! @azure/msal-common v15.12.0 2025-09-03 */
6339
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
6340
6340
 
6341
6341
  /*
6342
6342
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6571,7 +6571,7 @@ class AuthorizationCodeClient extends BaseClient {
6571
6571
  }
6572
6572
  }
6573
6573
 
6574
- /*! @azure/msal-common v15.12.0 2025-09-03 */
6574
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
6575
6575
 
6576
6576
  /*
6577
6577
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6780,7 +6780,7 @@ class RefreshTokenClient extends BaseClient {
6780
6780
  }
6781
6781
  }
6782
6782
 
6783
- /*! @azure/msal-common v15.12.0 2025-09-03 */
6783
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
6784
6784
 
6785
6785
  /*
6786
6786
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6878,7 +6878,7 @@ class SilentFlowClient extends BaseClient {
6878
6878
  }
6879
6879
  }
6880
6880
 
6881
- /*! @azure/msal-common v15.12.0 2025-09-03 */
6881
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
6882
6882
 
6883
6883
  /*
6884
6884
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -6893,7 +6893,7 @@ const StubbedNetworkModule = {
6893
6893
  },
6894
6894
  };
6895
6895
 
6896
- /*! @azure/msal-common v15.12.0 2025-09-03 */
6896
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
6897
6897
 
6898
6898
  /*
6899
6899
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7117,7 +7117,7 @@ function extractLoginHint(account) {
7117
7117
  return account.loginHint || account.idTokenClaims?.login_hint || null;
7118
7118
  }
7119
7119
 
7120
- /*! @azure/msal-common v15.12.0 2025-09-03 */
7120
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
7121
7121
 
7122
7122
  /*
7123
7123
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7380,7 +7380,7 @@ class ServerTelemetryManager {
7380
7380
  }
7381
7381
  }
7382
7382
 
7383
- /*! @azure/msal-common v15.12.0 2025-09-03 */
7383
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
7384
7384
  /*
7385
7385
  * Copyright (c) Microsoft Corporation. All rights reserved.
7386
7386
  * Licensed under the MIT License.
@@ -7388,7 +7388,7 @@ class ServerTelemetryManager {
7388
7388
  const missingKidError = "missing_kid_error";
7389
7389
  const missingAlgError = "missing_alg_error";
7390
7390
 
7391
- /*! @azure/msal-common v15.12.0 2025-09-03 */
7391
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
7392
7392
 
7393
7393
  /*
7394
7394
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7413,7 +7413,7 @@ function createJoseHeaderError(code) {
7413
7413
  return new JoseHeaderError(code, JoseHeaderErrorMessages[code]);
7414
7414
  }
7415
7415
 
7416
- /*! @azure/msal-common v15.12.0 2025-09-03 */
7416
+ /*! @azure/msal-common v15.12.0 2025-09-17 */
7417
7417
 
7418
7418
  /*
7419
7419
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7476,10 +7476,9 @@ class CustomAuthError extends Error {
7476
7476
  * Licensed under the MIT License.
7477
7477
  */
7478
7478
  class MsalCustomAuthError extends CustomAuthError {
7479
- constructor(error, errorDescription, subError, correlationId) {
7480
- super(error, errorDescription, correlationId);
7479
+ constructor(error, errorDescription, subError, errorCodes, correlationId) {
7480
+ super(error, errorDescription, correlationId, errorCodes, subError);
7481
7481
  Object.setPrototypeOf(this, MsalCustomAuthError.prototype);
7482
- this.subError = subError || "";
7483
7482
  }
7484
7483
  }
7485
7484
 
@@ -7537,7 +7536,19 @@ class AuthFlowResultBase {
7537
7536
  return error;
7538
7537
  }
7539
7538
  else if (error instanceof AuthError) {
7540
- return new MsalCustomAuthError(error.errorCode, error.errorMessage, error.subError, error.correlationId);
7539
+ const errorCodes = [];
7540
+ if ("errorNo" in error) {
7541
+ if (typeof error.errorNo === "string") {
7542
+ const code = Number(error.errorNo);
7543
+ if (!isNaN(code)) {
7544
+ errorCodes.push(code);
7545
+ }
7546
+ }
7547
+ else if (typeof error.errorNo === "number") {
7548
+ errorCodes.push(error.errorNo);
7549
+ }
7550
+ }
7551
+ return new MsalCustomAuthError(error.errorCode, error.errorMessage, error.subError, errorCodes, error.correlationId);
7541
7552
  }
7542
7553
  else {
7543
7554
  return new UnexpectedError(error);
@@ -7633,7 +7644,8 @@ const PASSWORD_RECENTLY_USED = "password_recently_used";
7633
7644
  const PASSWORD_BANNED = "password_banned";
7634
7645
  const PASSWORD_IS_INVALID = "password_is_invalid";
7635
7646
  const INVALID_OOB_VALUE = "invalid_oob_value";
7636
- const ATTRIBUTE_VALIATION_FAILED = "attribute_validation_failed";
7647
+ const ATTRIBUTE_VALIATION_FAILED = "attribute_validation_failed";
7648
+ const REGISTRATION_REQUIRED = "registration_required";
7637
7649
 
7638
7650
  /*
7639
7651
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7728,6 +7740,11 @@ class AuthFlowErrorBase {
7728
7740
  this.errorData.error === INVALID_REQUEST &&
7729
7741
  this.errorData.errorCodes?.includes(50142) === true);
7730
7742
  }
7743
+ isInvalidAuthMethodRegistrationInputError() {
7744
+ return (this.errorData instanceof CustomAuthApiError &&
7745
+ this.errorData.error === INVALID_REQUEST &&
7746
+ this.errorData.errorCodes?.includes(901001) === true);
7747
+ }
7731
7748
  }
7732
7749
  class AuthActionErrorBase extends AuthFlowErrorBase {
7733
7750
  /**
@@ -7820,7 +7837,7 @@ function ensureArgumentIsJSONString(argName, argValue, correlationId) {
7820
7837
 
7821
7838
  /* eslint-disable header/header */
7822
7839
  const name = "@azure/msal-browser";
7823
- const version = "4.22.0";
7840
+ const version = "4.23.0";
7824
7841
 
7825
7842
  /*
7826
7843
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7830,12 +7847,14 @@ const GrantType = {
7830
7847
  PASSWORD: "password",
7831
7848
  OOB: "oob",
7832
7849
  CONTINUATION_TOKEN: "continuation_token",
7850
+ REDIRECT: "redirect",
7833
7851
  ATTRIBUTES: "attributes",
7834
7852
  };
7835
7853
  const ChallengeType = {
7836
7854
  PASSWORD: "password",
7837
7855
  OOB: "oob",
7838
7856
  REDIRECT: "redirect",
7857
+ PREVERIFIED: "preverified",
7839
7858
  };
7840
7859
  const DefaultScopes = [
7841
7860
  Constants.OPENID_SCOPE,
@@ -8300,24 +8319,6 @@ class SignInResendCodeResult extends AuthFlowResultBase {
8300
8319
  class SignInCompletedState extends AuthFlowStateBase {
8301
8320
  }
8302
8321
 
8303
- /*
8304
- * Copyright (c) Microsoft Corporation. All rights reserved.
8305
- * Licensed under the MIT License.
8306
- */
8307
- /*
8308
- * Result of a sign-in submit credential operation.
8309
- */
8310
- class SignInSubmitCredentialResult extends AuthFlowResultBase {
8311
- /**
8312
- * Creates a new instance of SignInSubmitCredentialResult.
8313
- * @param state The state of the result.
8314
- * @param resultData The result data.
8315
- */
8316
- constructor(state, resultData) {
8317
- super(state, resultData);
8318
- }
8319
- }
8320
-
8321
8322
  /*
8322
8323
  * Copyright (c) Microsoft Corporation. All rights reserved.
8323
8324
  * Licensed under the MIT License.
@@ -8325,7 +8326,7 @@ class SignInSubmitCredentialResult extends AuthFlowResultBase {
8325
8326
  /*
8326
8327
  * Result of a sign-in submit code operation.
8327
8328
  */
8328
- class SignInSubmitCodeResult extends SignInSubmitCredentialResult {
8329
+ class SignInSubmitCodeResult extends AuthFlowResultBase {
8329
8330
  /**
8330
8331
  * Creates a new instance of SignInSubmitCodeResult with error data.
8331
8332
  * @param error The error that occurred.
@@ -8430,6 +8431,7 @@ class SignInCodeRequiredState extends SignInState {
8430
8431
  config: this.stateParameters.config,
8431
8432
  signInClient: this.stateParameters.signInClient,
8432
8433
  cacheClient: this.stateParameters.cacheClient,
8434
+ jitClient: this.stateParameters.jitClient,
8433
8435
  username: this.stateParameters.username,
8434
8436
  codeLength: result.codeLength,
8435
8437
  scopes: this.stateParameters.scopes,
@@ -8455,6 +8457,313 @@ class SignInCodeRequiredState extends SignInState {
8455
8457
  }
8456
8458
  }
8457
8459
 
8460
+ /*
8461
+ * Copyright (c) Microsoft Corporation. All rights reserved.
8462
+ * Licensed under the MIT License.
8463
+ */
8464
+ // Result type constants
8465
+ const JIT_GET_AUTH_METHODS_RESULT_TYPE = "JitGetAuthMethodsResult";
8466
+ const JIT_VERIFICATION_REQUIRED_RESULT_TYPE = "JitVerificationRequiredResult";
8467
+ const JIT_COMPLETED_RESULT_TYPE = "JitCompletedResult";
8468
+ function createJitGetAuthMethodsResult(input) {
8469
+ return {
8470
+ type: JIT_GET_AUTH_METHODS_RESULT_TYPE,
8471
+ ...input,
8472
+ };
8473
+ }
8474
+ function createJitVerificationRequiredResult(input) {
8475
+ return {
8476
+ type: JIT_VERIFICATION_REQUIRED_RESULT_TYPE,
8477
+ ...input,
8478
+ };
8479
+ }
8480
+ function createJitCompletedResult(input) {
8481
+ return {
8482
+ type: JIT_COMPLETED_RESULT_TYPE,
8483
+ ...input,
8484
+ };
8485
+ }
8486
+
8487
+ /*
8488
+ * Copyright (c) Microsoft Corporation. All rights reserved.
8489
+ * Licensed under the MIT License.
8490
+ */
8491
+ /**
8492
+ * Error that occurred during authentication method challenge request.
8493
+ */
8494
+ class AuthMethodRegistrationChallengeMethodError extends AuthActionErrorBase {
8495
+ /**
8496
+ * Checks if the input for auth method registration is incorrect.
8497
+ * @returns true if the input is incorrect, false otherwise.
8498
+ */
8499
+ isInvalidInput() {
8500
+ return this.isInvalidAuthMethodRegistrationInputError();
8501
+ }
8502
+ }
8503
+ /**
8504
+ * Error that occurred during authentication method challenge submission.
8505
+ */
8506
+ class AuthMethodRegistrationSubmitChallengeError extends AuthActionErrorBase {
8507
+ /**
8508
+ * Checks if the submitted challenge code is incorrect.
8509
+ * @returns true if the challenge code is incorrect, false otherwise.
8510
+ */
8511
+ isIncorrectChallenge() {
8512
+ return this.isInvalidCodeError();
8513
+ }
8514
+ }
8515
+
8516
+ /*
8517
+ * Copyright (c) Microsoft Corporation. All rights reserved.
8518
+ * Licensed under the MIT License.
8519
+ */
8520
+ class AuthMethodRegistrationFailedState extends AuthFlowStateBase {
8521
+ }
8522
+
8523
+ /*
8524
+ * Copyright (c) Microsoft Corporation. All rights reserved.
8525
+ * Licensed under the MIT License.
8526
+ */
8527
+ /**
8528
+ * Result of challenging an authentication method for registration.
8529
+ * Uses base state type to avoid circular dependencies.
8530
+ */
8531
+ class AuthMethodRegistrationChallengeMethodResult extends AuthFlowResultBase {
8532
+ /**
8533
+ * Creates an AuthMethodRegistrationChallengeMethodResult with an error.
8534
+ * @param error The error that occurred.
8535
+ * @returns The AuthMethodRegistrationChallengeMethodResult with error.
8536
+ */
8537
+ static createWithError(error) {
8538
+ const result = new AuthMethodRegistrationChallengeMethodResult(new AuthMethodRegistrationFailedState());
8539
+ result.error = new AuthMethodRegistrationChallengeMethodError(AuthMethodRegistrationChallengeMethodResult.createErrorData(error));
8540
+ return result;
8541
+ }
8542
+ /**
8543
+ * Checks if the result indicates that verification is required.
8544
+ * @returns true if verification is required, false otherwise.
8545
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
8546
+ */
8547
+ isVerificationRequired() {
8548
+ return (this.state.constructor?.name ===
8549
+ "AuthMethodVerificationRequiredState");
8550
+ }
8551
+ /**
8552
+ * Checks if the result indicates that registration is completed (fast-pass scenario).
8553
+ * @returns true if registration is completed, false otherwise.
8554
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
8555
+ */
8556
+ isCompleted() {
8557
+ return (this.state.constructor?.name ===
8558
+ "AuthMethodRegistrationCompletedState");
8559
+ }
8560
+ /**
8561
+ * Checks if the result is in a failed state.
8562
+ * @returns true if the result is failed, false otherwise.
8563
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
8564
+ */
8565
+ isFailed() {
8566
+ return this.state instanceof AuthMethodRegistrationFailedState;
8567
+ }
8568
+ }
8569
+
8570
+ /*
8571
+ * Copyright (c) Microsoft Corporation. All rights reserved.
8572
+ * Licensed under the MIT License.
8573
+ */
8574
+ /**
8575
+ * Result of submitting a challenge for authentication method registration.
8576
+ */
8577
+ class AuthMethodRegistrationSubmitChallengeResult extends AuthFlowResultBase {
8578
+ /**
8579
+ * Creates an AuthMethodRegistrationSubmitChallengeResult with an error.
8580
+ * @param error The error that occurred.
8581
+ * @returns The AuthMethodRegistrationSubmitChallengeResult with error.
8582
+ */
8583
+ static createWithError(error) {
8584
+ const result = new AuthMethodRegistrationSubmitChallengeResult(new AuthMethodRegistrationFailedState());
8585
+ result.error = new AuthMethodRegistrationSubmitChallengeError(AuthMethodRegistrationSubmitChallengeResult.createErrorData(error));
8586
+ return result;
8587
+ }
8588
+ /**
8589
+ * Checks if the result indicates that registration is completed.
8590
+ * @returns true if registration is completed, false otherwise.
8591
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
8592
+ */
8593
+ isCompleted() {
8594
+ return (this.state.constructor?.name ===
8595
+ "AuthMethodRegistrationCompletedState");
8596
+ }
8597
+ /**
8598
+ * Checks if the result is in a failed state.
8599
+ * @returns true if the result is failed, false otherwise.
8600
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
8601
+ */
8602
+ isFailed() {
8603
+ return this.state instanceof AuthMethodRegistrationFailedState;
8604
+ }
8605
+ }
8606
+
8607
+ /*
8608
+ * Copyright (c) Microsoft Corporation. All rights reserved.
8609
+ * Licensed under the MIT License.
8610
+ */
8611
+ class AuthMethodRegistrationCompletedState extends AuthFlowStateBase {
8612
+ }
8613
+
8614
+ /*
8615
+ * Copyright (c) Microsoft Corporation. All rights reserved.
8616
+ * Licensed under the MIT License.
8617
+ */
8618
+ /**
8619
+ * Abstract base class for authentication method registration states.
8620
+ */
8621
+ class AuthMethodRegistrationState extends AuthFlowActionRequiredStateBase {
8622
+ /**
8623
+ * Internal method to challenge an authentication method.
8624
+ * @param authMethodDetails The authentication method details to challenge.
8625
+ * @returns Promise that resolves to AuthMethodRegistrationChallengeMethodResult.
8626
+ */
8627
+ async challengeAuthMethodInternal(authMethodDetails) {
8628
+ try {
8629
+ this.stateParameters.logger.verbose(`Challenging authentication method - '${authMethodDetails.authMethodType.id}' for auth method registration.`, this.stateParameters.correlationId);
8630
+ const challengeParams = {
8631
+ correlationId: this.stateParameters.correlationId,
8632
+ continuationToken: this.stateParameters.continuationToken ?? "",
8633
+ authMethod: authMethodDetails.authMethodType,
8634
+ verificationContact: authMethodDetails.verificationContact,
8635
+ scopes: this.stateParameters.scopes ?? [],
8636
+ username: this.stateParameters.username,
8637
+ claims: this.stateParameters.claims,
8638
+ };
8639
+ const result = await this.stateParameters.jitClient.challengeAuthMethod(challengeParams);
8640
+ this.stateParameters.logger.verbose("Authentication method challenged successfully for auth method registration.", this.stateParameters.correlationId);
8641
+ if (result.type === JIT_VERIFICATION_REQUIRED_RESULT_TYPE) {
8642
+ // Verification required
8643
+ this.stateParameters.logger.verbose("Auth method verification required.", this.stateParameters.correlationId);
8644
+ return new AuthMethodRegistrationChallengeMethodResult(new AuthMethodVerificationRequiredState({
8645
+ correlationId: result.correlationId,
8646
+ continuationToken: result.continuationToken,
8647
+ config: this.stateParameters.config,
8648
+ logger: this.stateParameters.logger,
8649
+ jitClient: this.stateParameters.jitClient,
8650
+ cacheClient: this.stateParameters.cacheClient,
8651
+ challengeChannel: result.challengeChannel,
8652
+ challengeTargetLabel: result.challengeTargetLabel,
8653
+ codeLength: result.codeLength,
8654
+ scopes: this.stateParameters.scopes ?? [],
8655
+ username: this.stateParameters.username,
8656
+ claims: this.stateParameters.claims,
8657
+ }));
8658
+ }
8659
+ else if (result.type === JIT_COMPLETED_RESULT_TYPE) {
8660
+ // Registration completed (fast-pass scenario)
8661
+ this.stateParameters.logger.verbose("Auth method registration completed via fast-pass.", this.stateParameters.correlationId);
8662
+ const accountInfo = new CustomAuthAccountData(result.authenticationResult.account, this.stateParameters.config, this.stateParameters.cacheClient, this.stateParameters.logger, this.stateParameters.correlationId);
8663
+ return new AuthMethodRegistrationChallengeMethodResult(new AuthMethodRegistrationCompletedState(), accountInfo);
8664
+ }
8665
+ else {
8666
+ // Handle unexpected result type with proper typing
8667
+ this.stateParameters.logger.error("Unexpected result type from auth challenge method", this.stateParameters.correlationId);
8668
+ throw new UnexpectedError("Unexpected result type from auth challenge method");
8669
+ }
8670
+ }
8671
+ catch (error) {
8672
+ this.stateParameters.logger.error("Failed to challenge authentication method for auth method registration.", this.stateParameters.correlationId);
8673
+ return AuthMethodRegistrationChallengeMethodResult.createWithError(error);
8674
+ }
8675
+ }
8676
+ }
8677
+ /**
8678
+ * State indicating that authentication method registration is required.
8679
+ */
8680
+ class AuthMethodRegistrationRequiredState extends AuthMethodRegistrationState {
8681
+ /**
8682
+ * Gets the available authentication methods for registration.
8683
+ * @returns Array of available authentication methods.
8684
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
8685
+ */
8686
+ getAuthMethods() {
8687
+ return this.stateParameters.authMethods;
8688
+ }
8689
+ /**
8690
+ * Challenges an authentication method for registration.
8691
+ * @param authMethodDetails The authentication method details to challenge.
8692
+ * @returns Promise that resolves to AuthMethodRegistrationChallengeMethodResult.
8693
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
8694
+ */
8695
+ async challengeAuthMethod(authMethodDetails) {
8696
+ return this.challengeAuthMethodInternal(authMethodDetails);
8697
+ }
8698
+ }
8699
+ /**
8700
+ * State indicating that verification is required for the challenged authentication method.
8701
+ */
8702
+ class AuthMethodVerificationRequiredState extends AuthMethodRegistrationState {
8703
+ /**
8704
+ * Gets the length of the expected verification code.
8705
+ * @returns The code length.
8706
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
8707
+ */
8708
+ getCodeLength() {
8709
+ return this.stateParameters.codeLength;
8710
+ }
8711
+ /**
8712
+ * Gets the channel through which the challenge was sent.
8713
+ * @returns The challenge channel (e.g., "email").
8714
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
8715
+ */
8716
+ getChannel() {
8717
+ return this.stateParameters.challengeChannel;
8718
+ }
8719
+ /**
8720
+ * Gets the target label indicating where the challenge was sent.
8721
+ * @returns The challenge target label (e.g., masked email address).
8722
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
8723
+ */
8724
+ getSentTo() {
8725
+ return this.stateParameters.challengeTargetLabel;
8726
+ }
8727
+ /**
8728
+ * Submits the verification challenge to complete the authentication method registration.
8729
+ * @param code The verification code entered by the user.
8730
+ * @returns Promise that resolves to AuthMethodRegistrationSubmitChallengeResult.
8731
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
8732
+ */
8733
+ async submitChallenge(code) {
8734
+ try {
8735
+ this.ensureCodeIsValid(code, this.getCodeLength());
8736
+ this.stateParameters.logger.verbose("Submitting auth method challenge.", this.stateParameters.correlationId);
8737
+ const submitParams = {
8738
+ correlationId: this.stateParameters.correlationId,
8739
+ continuationToken: this.stateParameters.continuationToken ?? "",
8740
+ scopes: this.stateParameters.scopes ?? [],
8741
+ grantType: GrantType.OOB,
8742
+ challenge: code,
8743
+ username: this.stateParameters.username,
8744
+ claims: this.stateParameters.claims,
8745
+ };
8746
+ const result = await this.stateParameters.jitClient.submitChallenge(submitParams);
8747
+ this.stateParameters.logger.verbose("Auth method challenge submitted successfully.", this.stateParameters.correlationId);
8748
+ const accountInfo = new CustomAuthAccountData(result.authenticationResult.account, this.stateParameters.config, this.stateParameters.cacheClient, this.stateParameters.logger, this.stateParameters.correlationId);
8749
+ return new AuthMethodRegistrationSubmitChallengeResult(new AuthMethodRegistrationCompletedState(), accountInfo);
8750
+ }
8751
+ catch (error) {
8752
+ this.stateParameters.logger.error("Failed to submit auth method challenge.", this.stateParameters.correlationId);
8753
+ return AuthMethodRegistrationSubmitChallengeResult.createWithError(error);
8754
+ }
8755
+ }
8756
+ /**
8757
+ * Challenges a different authentication method for registration.
8758
+ * @param authMethodDetails The authentication method details to challenge.
8759
+ * @returns Promise that resolves to AuthMethodRegistrationChallengeMethodResult.
8760
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
8761
+ */
8762
+ async challengeAuthMethod(authMethodDetails) {
8763
+ return this.challengeAuthMethodInternal(authMethodDetails);
8764
+ }
8765
+ }
8766
+
8458
8767
  /*
8459
8768
  * Copyright (c) Microsoft Corporation. All rights reserved.
8460
8769
  * Licensed under the MIT License.
@@ -8462,7 +8771,7 @@ class SignInCodeRequiredState extends SignInState {
8462
8771
  /*
8463
8772
  * Result of a sign-in submit password operation.
8464
8773
  */
8465
- class SignInSubmitPasswordResult extends SignInSubmitCredentialResult {
8774
+ class SignInSubmitPasswordResult extends AuthFlowResultBase {
8466
8775
  static createWithError(error) {
8467
8776
  const result = new SignInSubmitPasswordResult(new SignInFailedState());
8468
8777
  result.error = new SignInSubmitPasswordError(SignInSubmitPasswordResult.createErrorData(error));
@@ -8480,6 +8789,46 @@ class SignInSubmitPasswordResult extends SignInSubmitCredentialResult {
8480
8789
  isCompleted() {
8481
8790
  return this.state instanceof SignInCompletedState;
8482
8791
  }
8792
+ /**
8793
+ * Checks if the result requires authentication method registration.
8794
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
8795
+ */
8796
+ isAuthMethodRegistrationRequired() {
8797
+ return this.state instanceof AuthMethodRegistrationRequiredState;
8798
+ }
8799
+ }
8800
+
8801
+ /*
8802
+ * Copyright (c) Microsoft Corporation. All rights reserved.
8803
+ * Licensed under the MIT License.
8804
+ */
8805
+ const SIGN_IN_CODE_SEND_RESULT_TYPE = "SignInCodeSendResult";
8806
+ const SIGN_IN_PASSWORD_REQUIRED_RESULT_TYPE = "SignInPasswordRequiredResult";
8807
+ const SIGN_IN_COMPLETED_RESULT_TYPE = "SignInCompletedResult";
8808
+ const SIGN_IN_JIT_REQUIRED_RESULT_TYPE = "SignInJitRequiredResult";
8809
+ function createSignInCompleteResult(input) {
8810
+ return {
8811
+ type: SIGN_IN_COMPLETED_RESULT_TYPE,
8812
+ ...input,
8813
+ };
8814
+ }
8815
+ function createSignInPasswordRequiredResult(input) {
8816
+ return {
8817
+ type: SIGN_IN_PASSWORD_REQUIRED_RESULT_TYPE,
8818
+ ...input,
8819
+ };
8820
+ }
8821
+ function createSignInCodeSendResult(input) {
8822
+ return {
8823
+ type: SIGN_IN_CODE_SEND_RESULT_TYPE,
8824
+ ...input,
8825
+ };
8826
+ }
8827
+ function createSignInJitRequiredResult(input) {
8828
+ return {
8829
+ type: SIGN_IN_JIT_REQUIRED_RESULT_TYPE,
8830
+ ...input,
8831
+ };
8483
8832
  }
8484
8833
 
8485
8834
  /*
@@ -8509,10 +8858,34 @@ class SignInPasswordRequiredState extends SignInState {
8509
8858
  claims: this.stateParameters.claims,
8510
8859
  };
8511
8860
  this.stateParameters.logger.verbose("Submitting password for sign-in.", this.stateParameters.correlationId);
8512
- const completedResult = await this.stateParameters.signInClient.submitPassword(submitPasswordParams);
8861
+ const submitPasswordResult = await this.stateParameters.signInClient.submitPassword(submitPasswordParams);
8513
8862
  this.stateParameters.logger.verbose("Password submitted for sign-in.", this.stateParameters.correlationId);
8514
- const accountInfo = new CustomAuthAccountData(completedResult.authenticationResult.account, this.stateParameters.config, this.stateParameters.cacheClient, this.stateParameters.logger, this.stateParameters.correlationId);
8515
- return new SignInSubmitPasswordResult(new SignInCompletedState(), accountInfo);
8863
+ if (submitPasswordResult.type === SIGN_IN_COMPLETED_RESULT_TYPE) {
8864
+ const accountInfo = new CustomAuthAccountData(submitPasswordResult.authenticationResult.account, this.stateParameters.config, this.stateParameters.cacheClient, this.stateParameters.logger, this.stateParameters.correlationId);
8865
+ return new SignInSubmitPasswordResult(new SignInCompletedState(), accountInfo);
8866
+ }
8867
+ else if (submitPasswordResult.type === SIGN_IN_JIT_REQUIRED_RESULT_TYPE) {
8868
+ // JIT is required - return AuthMethodRegistrationRequiredState
8869
+ this.stateParameters.logger.verbose("Authentication method registration required after password submission.", this.stateParameters.correlationId);
8870
+ return new SignInSubmitPasswordResult(new AuthMethodRegistrationRequiredState({
8871
+ correlationId: this.stateParameters.correlationId,
8872
+ continuationToken: submitPasswordResult.continuationToken,
8873
+ logger: this.stateParameters.logger,
8874
+ config: this.stateParameters.config,
8875
+ jitClient: this.stateParameters.jitClient,
8876
+ cacheClient: this.stateParameters.cacheClient,
8877
+ authMethods: submitPasswordResult.authMethods,
8878
+ username: this.stateParameters.username,
8879
+ scopes: this.stateParameters.scopes ?? [],
8880
+ claims: this.stateParameters.claims,
8881
+ }));
8882
+ }
8883
+ else {
8884
+ // Unexpected result type
8885
+ const result = submitPasswordResult;
8886
+ const error = new Error(`Unexpected result type: ${result.type}`);
8887
+ return SignInSubmitPasswordResult.createWithError(error);
8888
+ }
8516
8889
  }
8517
8890
  catch (error) {
8518
8891
  this.stateParameters.logger.errorPii(`Failed to sign in after submitting password. Error: ${error}.`, this.stateParameters.correlationId);
@@ -8577,6 +8950,13 @@ class SignInResult extends AuthFlowResultBase {
8577
8950
  isCompleted() {
8578
8951
  return this.state instanceof SignInCompletedState;
8579
8952
  }
8953
+ /**
8954
+ * Checks if the result requires authentication method registration.
8955
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
8956
+ */
8957
+ isAuthMethodRegistrationRequired() {
8958
+ return this.state instanceof AuthMethodRegistrationRequiredState;
8959
+ }
8580
8960
  }
8581
8961
 
8582
8962
  /*
@@ -8726,10 +9106,37 @@ class SignInContinuationState extends SignInState {
8726
9106
  claims: signInWithContinuationTokenInputs?.claims,
8727
9107
  };
8728
9108
  this.stateParameters.logger.verbose("Signing in with continuation token.", this.stateParameters.correlationId);
8729
- const completedResult = await this.stateParameters.signInClient.signInWithContinuationToken(continuationTokenParams);
9109
+ const signInResult = await this.stateParameters.signInClient.signInWithContinuationToken(continuationTokenParams);
8730
9110
  this.stateParameters.logger.verbose("Signed in with continuation token.", this.stateParameters.correlationId);
8731
- const accountInfo = new CustomAuthAccountData(completedResult.authenticationResult.account, this.stateParameters.config, this.stateParameters.cacheClient, this.stateParameters.logger, this.stateParameters.correlationId);
8732
- return new SignInResult(new SignInCompletedState(), accountInfo);
9111
+ if (signInResult.type === SIGN_IN_COMPLETED_RESULT_TYPE) {
9112
+ // Sign-in completed successfully
9113
+ const accountInfo = new CustomAuthAccountData(signInResult.authenticationResult.account, this.stateParameters.config, this.stateParameters.cacheClient, this.stateParameters.logger, this.stateParameters.correlationId);
9114
+ return new SignInResult(new SignInCompletedState(), accountInfo);
9115
+ }
9116
+ else if (signInResult.type === SIGN_IN_JIT_REQUIRED_RESULT_TYPE) {
9117
+ // JIT is required
9118
+ this.stateParameters.logger.warning("Auth method registration required during continuation token sign-in.", this.stateParameters.correlationId);
9119
+ // Return AuthMethodRegistrationRequiredState to handle JIT scenario
9120
+ const authMethodRegistrationState = new AuthMethodRegistrationRequiredState({
9121
+ correlationId: this.stateParameters.correlationId,
9122
+ continuationToken: signInResult.continuationToken,
9123
+ logger: this.stateParameters.logger,
9124
+ config: this.stateParameters.config,
9125
+ jitClient: this.stateParameters.jitClient,
9126
+ cacheClient: this.stateParameters.cacheClient,
9127
+ authMethods: signInResult.authMethods,
9128
+ username: this.stateParameters.username,
9129
+ scopes: signInWithContinuationTokenInputs?.scopes ?? [],
9130
+ claims: this.stateParameters.claims,
9131
+ });
9132
+ return new SignInResult(authMethodRegistrationState);
9133
+ }
9134
+ else {
9135
+ // Unexpected result type
9136
+ const result = signInResult;
9137
+ const error = new Error(`Unexpected result type: ${result.type}`);
9138
+ return SignInResult.createWithError(error);
9139
+ }
8733
9140
  }
8734
9141
  catch (error) {
8735
9142
  this.stateParameters.logger.errorPii(`Failed to sign in with continuation token. Error: ${error}.`, this.stateParameters.correlationId);
@@ -8867,6 +9274,7 @@ class SignUpAttributesRequiredState extends SignUpState {
8867
9274
  config: this.stateParameters.config,
8868
9275
  signInClient: this.stateParameters.signInClient,
8869
9276
  cacheClient: this.stateParameters.cacheClient,
9277
+ jitClient: this.stateParameters.jitClient,
8870
9278
  username: this.stateParameters.username,
8871
9279
  signInScenario: SignInScenario.SignInAfterSignUp,
8872
9280
  }));
@@ -9013,6 +9421,7 @@ class SignUpPasswordRequiredState extends SignUpState {
9013
9421
  signInClient: this.stateParameters.signInClient,
9014
9422
  signUpClient: this.stateParameters.signUpClient,
9015
9423
  cacheClient: this.stateParameters.cacheClient,
9424
+ jitClient: this.stateParameters.jitClient,
9016
9425
  username: this.stateParameters.username,
9017
9426
  requiredAttributes: result.requiredAttributes,
9018
9427
  }));
@@ -9027,6 +9436,7 @@ class SignUpPasswordRequiredState extends SignUpState {
9027
9436
  config: this.stateParameters.config,
9028
9437
  signInClient: this.stateParameters.signInClient,
9029
9438
  cacheClient: this.stateParameters.cacheClient,
9439
+ jitClient: this.stateParameters.jitClient,
9030
9440
  username: this.stateParameters.username,
9031
9441
  signInScenario: SignInScenario.SignInAfterSignUp,
9032
9442
  }));
@@ -9128,6 +9538,7 @@ class SignUpCodeRequiredState extends SignUpState {
9128
9538
  signInClient: this.stateParameters.signInClient,
9129
9539
  signUpClient: this.stateParameters.signUpClient,
9130
9540
  cacheClient: this.stateParameters.cacheClient,
9541
+ jitClient: this.stateParameters.jitClient,
9131
9542
  username: this.stateParameters.username,
9132
9543
  }));
9133
9544
  }
@@ -9142,6 +9553,7 @@ class SignUpCodeRequiredState extends SignUpState {
9142
9553
  signInClient: this.stateParameters.signInClient,
9143
9554
  signUpClient: this.stateParameters.signUpClient,
9144
9555
  cacheClient: this.stateParameters.cacheClient,
9556
+ jitClient: this.stateParameters.jitClient,
9145
9557
  username: this.stateParameters.username,
9146
9558
  requiredAttributes: result.requiredAttributes,
9147
9559
  }));
@@ -9156,6 +9568,7 @@ class SignUpCodeRequiredState extends SignUpState {
9156
9568
  config: this.stateParameters.config,
9157
9569
  signInClient: this.stateParameters.signInClient,
9158
9570
  cacheClient: this.stateParameters.cacheClient,
9571
+ jitClient: this.stateParameters.jitClient,
9159
9572
  username: this.stateParameters.username,
9160
9573
  signInScenario: SignInScenario.SignInAfterSignUp,
9161
9574
  }));
@@ -9190,6 +9603,7 @@ class SignUpCodeRequiredState extends SignUpState {
9190
9603
  signInClient: this.stateParameters.signInClient,
9191
9604
  signUpClient: this.stateParameters.signUpClient,
9192
9605
  cacheClient: this.stateParameters.cacheClient,
9606
+ jitClient: this.stateParameters.jitClient,
9193
9607
  username: this.stateParameters.username,
9194
9608
  codeLength: result.codeLength,
9195
9609
  codeResendInterval: result.interval,
@@ -10564,6 +10978,7 @@ class CustomAuthInteractionClientBase extends StandardInteractionClient {
10564
10978
  super(config, storageImpl, browserCrypto, logger, eventHandler, navigationClient, performanceClient);
10565
10979
  this.customAuthApiClient = customAuthApiClient;
10566
10980
  this.customAuthAuthority = customAuthAuthority;
10981
+ this.tokenResponseHandler = new ResponseHandler(this.config.auth.clientId, this.browserStorage, this.browserCrypto, this.logger, null, null);
10567
10982
  }
10568
10983
  getChallengeTypes(configuredChallengeTypes) {
10569
10984
  const challengeType = configuredChallengeTypes ?? [];
@@ -10582,6 +10997,24 @@ class CustomAuthInteractionClientBase extends StandardInteractionClient {
10582
10997
  Constants.OFFLINE_ACCESS_SCOPE,
10583
10998
  ];
10584
10999
  }
11000
+ /**
11001
+ * Common method to handle token response processing.
11002
+ * @param tokenResponse The token response from the API
11003
+ * @param requestScopes Scopes for the token request
11004
+ * @param correlationId Correlation ID for logging
11005
+ * @returns Authentication result from the token response
11006
+ */
11007
+ async handleTokenResponse(tokenResponse, requestScopes, correlationId) {
11008
+ this.logger.verbose("Processing token response.", correlationId);
11009
+ const requestTimestamp = Math.round(new Date().getTime() / 1000.0);
11010
+ // Save tokens and create authentication result 44s
11011
+ const result = await this.tokenResponseHandler.handleServerTokenResponse(tokenResponse, this.customAuthAuthority, requestTimestamp, {
11012
+ authority: this.customAuthAuthority.canonicalAuthority,
11013
+ correlationId: tokenResponse.correlation_id ?? correlationId,
11014
+ scopes: requestScopes,
11015
+ });
11016
+ return result;
11017
+ }
10585
11018
  // It is not necessary to implement this method from base class.
10586
11019
  acquireToken(
10587
11020
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
@@ -10596,32 +11029,6 @@ class CustomAuthInteractionClientBase extends StandardInteractionClient {
10596
11029
  }
10597
11030
  }
10598
11031
 
10599
- /*
10600
- * Copyright (c) Microsoft Corporation. All rights reserved.
10601
- * Licensed under the MIT License.
10602
- */
10603
- const SIGN_IN_CODE_SEND_RESULT_TYPE = "SignInCodeSendResult";
10604
- const SIGN_IN_PASSWORD_REQUIRED_RESULT_TYPE = "SignInPasswordRequiredResult";
10605
- const SIGN_IN_COMPLETED_RESULT_TYPE = "SignInCompletedResult";
10606
- function createSignInCompleteResult(input) {
10607
- return {
10608
- type: SIGN_IN_COMPLETED_RESULT_TYPE,
10609
- ...input,
10610
- };
10611
- }
10612
- function createSignInPasswordRequiredResult(input) {
10613
- return {
10614
- type: SIGN_IN_PASSWORD_REQUIRED_RESULT_TYPE,
10615
- ...input,
10616
- };
10617
- }
10618
- function createSignInCodeSendResult(input) {
10619
- return {
10620
- type: SIGN_IN_CODE_SEND_RESULT_TYPE,
10621
- ...input,
10622
- };
10623
- }
10624
-
10625
11032
  /*
10626
11033
  * Copyright (c) Microsoft Corporation. All rights reserved.
10627
11034
  * Licensed under the MIT License.
@@ -10650,17 +11057,17 @@ const PASSWORD_RESET_START = 100041;
10650
11057
  const PASSWORD_RESET_SUBMIT_CODE = 100042;
10651
11058
  const PASSWORD_RESET_SUBMIT_PASSWORD = 100043;
10652
11059
  const PASSWORD_RESET_RESEND_CODE = 100044;
10653
- const ACCOUNT_GET_ACCESS_TOKEN = 100063;
11060
+ const ACCOUNT_GET_ACCESS_TOKEN = 100063;
11061
+ // JIT (Just-In-Time) Auth Method Registration
11062
+ const JIT_GET_AUTH_METHODS = 100081;
11063
+ const JIT_CHALLENGE_AUTH_METHOD = 100082;
11064
+ const JIT_SUBMIT_CHALLENGE = 100083;
10654
11065
 
10655
11066
  /*
10656
11067
  * Copyright (c) Microsoft Corporation. All rights reserved.
10657
11068
  * Licensed under the MIT License.
10658
11069
  */
10659
11070
  class SignInClient extends CustomAuthInteractionClientBase {
10660
- constructor(config, storageImpl, browserCrypto, logger, eventHandler, navigationClient, performanceClient, customAuthApiClient, customAuthAuthority) {
10661
- super(config, storageImpl, browserCrypto, logger, eventHandler, navigationClient, performanceClient, customAuthApiClient, customAuthAuthority);
10662
- this.tokenResponseHandler = new ResponseHandler(this.config.auth.clientId, this.browserStorage, this.browserCrypto, this.logger, null, null);
10663
- }
10664
11071
  /**
10665
11072
  * Starts the signin flow.
10666
11073
  * @param parameters The parameters required to start the sign-in flow.
@@ -10729,7 +11136,9 @@ class SignInClient extends CustomAuthInteractionClientBase {
10729
11136
  claims: parameters.claims,
10730
11137
  }),
10731
11138
  };
10732
- return this.performTokenRequest(() => this.customAuthApiClient.signInApi.requestTokensWithOob(request), scopes);
11139
+ const result = this.performTokenRequest(() => this.customAuthApiClient.signInApi.requestTokensWithOob(request), scopes, parameters.correlationId, telemetryManager, false // Don't handle JIT for code submission
11140
+ );
11141
+ return result;
10733
11142
  }
10734
11143
  /**
10735
11144
  * Submits the password for sign-in flow.
@@ -10751,7 +11160,8 @@ class SignInClient extends CustomAuthInteractionClientBase {
10751
11160
  claims: parameters.claims,
10752
11161
  }),
10753
11162
  };
10754
- return this.performTokenRequest(() => this.customAuthApiClient.signInApi.requestTokensWithPassword(request), scopes);
11163
+ return this.performTokenRequest(() => this.customAuthApiClient.signInApi.requestTokensWithPassword(request), scopes, parameters.correlationId, telemetryManager, true // Handle JIT for password submission
11164
+ );
10755
11165
  }
10756
11166
  /**
10757
11167
  * Signs in with continuation token.
@@ -10774,28 +11184,49 @@ class SignInClient extends CustomAuthInteractionClientBase {
10774
11184
  }),
10775
11185
  };
10776
11186
  // Call token endpoint.
10777
- return this.performTokenRequest(() => this.customAuthApiClient.signInApi.requestTokenWithContinuationToken(request), scopes);
11187
+ return this.performTokenRequest(() => this.customAuthApiClient.signInApi.requestTokenWithContinuationToken(request), scopes, parameters.correlationId, telemetryManager, true // Handle JIT for continuation token sign-in (e.g., after sign-up or SSPR)
11188
+ );
10778
11189
  }
10779
- async performTokenRequest(tokenEndpointCaller, requestScopes) {
10780
- this.logger.verbose("Calling token endpoint for sign in.", this.correlationId);
10781
- const requestTimestamp = Math.round(new Date().getTime() / 1000.0);
10782
- const tokenResponse = await tokenEndpointCaller();
10783
- this.logger.verbose("Token endpoint called for sign in.", this.correlationId);
10784
- // Save tokens and create authentication result.
10785
- const result = await this.tokenResponseHandler.handleServerTokenResponse(tokenResponse, this.customAuthAuthority, requestTimestamp, {
10786
- authority: this.customAuthAuthority.canonicalAuthority,
10787
- correlationId: tokenResponse.correlation_id ?? "",
10788
- scopes: requestScopes,
10789
- storeInCache: {
10790
- idToken: true,
10791
- accessToken: true,
10792
- refreshToken: true,
10793
- },
10794
- });
10795
- return createSignInCompleteResult({
10796
- correlationId: tokenResponse.correlation_id ?? "",
10797
- authenticationResult: result,
10798
- });
11190
+ /**
11191
+ * Common method to handle token endpoint calls and create sign-in results.
11192
+ * @param tokenEndpointCaller Function that calls the specific token endpoint
11193
+ * @param scopes Scopes for the token request
11194
+ * @param correlationId Correlation ID for logging and result
11195
+ * @param handleJit Whether to handle JIT required errors or throw them
11196
+ * @returns SignInCompletedResult with authentication result
11197
+ */
11198
+ async performTokenRequest(tokenEndpointCaller, scopes, correlationId, telemetryManager, handleJit) {
11199
+ this.logger.verbose("Calling token endpoint for sign in.", correlationId);
11200
+ try {
11201
+ const tokenResponse = await tokenEndpointCaller();
11202
+ this.logger.verbose("Token endpoint response received for sign in.", correlationId);
11203
+ const authResult = await this.handleTokenResponse(tokenResponse, scopes, correlationId);
11204
+ return createSignInCompleteResult({
11205
+ correlationId: tokenResponse.correlation_id ?? correlationId,
11206
+ authenticationResult: authResult,
11207
+ });
11208
+ }
11209
+ catch (error) {
11210
+ if (handleJit &&
11211
+ error instanceof CustomAuthApiError &&
11212
+ error.subError === REGISTRATION_REQUIRED) {
11213
+ this.logger.verbose("Auth method registration required for sign in.", correlationId);
11214
+ // Call register introspect endpoint to get available authentication methods
11215
+ const introspectRequest = {
11216
+ continuation_token: error.continuationToken ?? "",
11217
+ correlationId: error.correlationId ?? correlationId,
11218
+ telemetryManager,
11219
+ };
11220
+ const introspectResponse = await this.customAuthApiClient.registerApi.introspect(introspectRequest);
11221
+ return createSignInJitRequiredResult({
11222
+ correlationId: introspectResponse.correlation_id ?? correlationId,
11223
+ continuationToken: introspectResponse.continuation_token ?? "",
11224
+ authMethods: introspectResponse.methods,
11225
+ });
11226
+ }
11227
+ // Re-throw any other errors or JIT errors when handleJit is false
11228
+ throw error;
11229
+ }
10799
11230
  }
10800
11231
  async performChallengeRequest(request) {
10801
11232
  this.logger.verbose("Calling challenge endpoint for sign in.", request.correlationId);
@@ -11046,6 +11477,7 @@ class ResetPasswordPasswordRequiredState extends ResetPasswordState {
11046
11477
  username: this.stateParameters.username,
11047
11478
  signInClient: this.stateParameters.signInClient,
11048
11479
  cacheClient: this.stateParameters.cacheClient,
11480
+ jitClient: this.stateParameters.jitClient,
11049
11481
  signInScenario: SignInScenario.SignInAfterPasswordReset,
11050
11482
  }));
11051
11483
  }
@@ -11130,6 +11562,7 @@ class ResetPasswordCodeRequiredState extends ResetPasswordState {
11130
11562
  resetPasswordClient: this.stateParameters.resetPasswordClient,
11131
11563
  signInClient: this.stateParameters.signInClient,
11132
11564
  cacheClient: this.stateParameters.cacheClient,
11565
+ jitClient: this.stateParameters.jitClient,
11133
11566
  username: this.stateParameters.username,
11134
11567
  }));
11135
11568
  }
@@ -11162,6 +11595,7 @@ class ResetPasswordCodeRequiredState extends ResetPasswordState {
11162
11595
  resetPasswordClient: this.stateParameters.resetPasswordClient,
11163
11596
  signInClient: this.stateParameters.signInClient,
11164
11597
  cacheClient: this.stateParameters.cacheClient,
11598
+ jitClient: this.stateParameters.jitClient,
11165
11599
  username: this.stateParameters.username,
11166
11600
  codeLength: result.codeLength,
11167
11601
  }));
@@ -11233,7 +11667,10 @@ const RESET_PWD_START = "/resetpassword/v1.0/start";
11233
11667
  const RESET_PWD_CHALLENGE = "/resetpassword/v1.0/challenge";
11234
11668
  const RESET_PWD_CONTINUE = "/resetpassword/v1.0/continue";
11235
11669
  const RESET_PWD_SUBMIT = "/resetpassword/v1.0/submit";
11236
- const RESET_PWD_POLL = "/resetpassword/v1.0/poll_completion";
11670
+ const RESET_PWD_POLL = "/resetpassword/v1.0/poll_completion";
11671
+ const REGISTER_INTROSPECT = "/register/v1.0/introspect";
11672
+ const REGISTER_CHALLENGE = "/register/v1.0/challenge";
11673
+ const REGISTER_CONTINUE = "/register/v1.0/continue";
11237
11674
 
11238
11675
  /*
11239
11676
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -11869,6 +12306,7 @@ class SignInApiClient extends BaseApiClient {
11869
12306
  const result = await this.request(SIGNIN_CHALLENGE, {
11870
12307
  continuation_token: params.continuation_token,
11871
12308
  challenge_type: params.challenge_type,
12309
+ ...(params.id && { id: params.id }),
11872
12310
  }, params.telemetryManager, params.correlationId);
11873
12311
  this.ensureContinuationTokenIsValid(result.continuation_token, params.correlationId);
11874
12312
  return result;
@@ -11900,11 +12338,11 @@ class SignInApiClient extends BaseApiClient {
11900
12338
  async requestTokenWithContinuationToken(params) {
11901
12339
  return this.requestTokens({
11902
12340
  continuation_token: params.continuation_token,
11903
- username: params.username,
11904
12341
  scope: params.scope,
11905
12342
  grant_type: GrantType.CONTINUATION_TOKEN,
11906
12343
  client_info: true,
11907
12344
  ...(params.claims && { claims: params.claims }),
12345
+ ...(params.username && { username: params.username }),
11908
12346
  }, params.telemetryManager, params.correlationId);
11909
12347
  }
11910
12348
  async requestTokens(requestData, telemetryManager, correlationId) {
@@ -11948,6 +12386,50 @@ class SignInApiClient extends BaseApiClient {
11948
12386
  }
11949
12387
  }
11950
12388
 
12389
+ /*
12390
+ * Copyright (c) Microsoft Corporation. All rights reserved.
12391
+ * Licensed under the MIT License.
12392
+ */
12393
+ class RegisterApiClient extends BaseApiClient {
12394
+ /**
12395
+ * Gets available authentication methods for registration
12396
+ */
12397
+ async introspect(params) {
12398
+ const result = await this.request(REGISTER_INTROSPECT, {
12399
+ continuation_token: params.continuation_token,
12400
+ }, params.telemetryManager, params.correlationId);
12401
+ this.ensureContinuationTokenIsValid(result.continuation_token, params.correlationId);
12402
+ return result;
12403
+ }
12404
+ /**
12405
+ * Sends challenge to specified authentication method
12406
+ */
12407
+ async challenge(params) {
12408
+ const result = await this.request(REGISTER_CHALLENGE, {
12409
+ continuation_token: params.continuation_token,
12410
+ challenge_type: params.challenge_type,
12411
+ challenge_target: params.challenge_target,
12412
+ ...(params.challenge_channel && {
12413
+ challenge_channel: params.challenge_channel,
12414
+ }),
12415
+ }, params.telemetryManager, params.correlationId);
12416
+ this.ensureContinuationTokenIsValid(result.continuation_token, params.correlationId);
12417
+ return result;
12418
+ }
12419
+ /**
12420
+ * Submits challenge response and continues registration
12421
+ */
12422
+ async continue(params) {
12423
+ const result = await this.request(REGISTER_CONTINUE, {
12424
+ continuation_token: params.continuation_token,
12425
+ grant_type: params.grant_type,
12426
+ ...(params.oob && { oob: params.oob }),
12427
+ }, params.telemetryManager, params.correlationId);
12428
+ this.ensureContinuationTokenIsValid(result.continuation_token, params.correlationId);
12429
+ return result;
12430
+ }
12431
+ }
12432
+
11951
12433
  /*
11952
12434
  * Copyright (c) Microsoft Corporation. All rights reserved.
11953
12435
  * Licensed under the MIT License.
@@ -11957,6 +12439,7 @@ class CustomAuthApiClient {
11957
12439
  this.signInApi = new SignInApiClient(customAuthApiBaseUrl, clientId, httpClient, capabilities, customAuthApiQueryParams);
11958
12440
  this.signUpApi = new SignupApiClient(customAuthApiBaseUrl, clientId, httpClient, capabilities, customAuthApiQueryParams);
11959
12441
  this.resetPasswordApi = new ResetPasswordApiClient(customAuthApiBaseUrl, clientId, httpClient, capabilities, customAuthApiQueryParams);
12442
+ this.registerApi = new RegisterApiClient(customAuthApiBaseUrl, clientId, httpClient);
11960
12443
  }
11961
12444
  }
11962
12445
 
@@ -12178,6 +12661,124 @@ class ResetPasswordClient extends CustomAuthInteractionClientBase {
12178
12661
  }
12179
12662
  }
12180
12663
 
12664
+ /*
12665
+ * Copyright (c) Microsoft Corporation. All rights reserved.
12666
+ * Licensed under the MIT License.
12667
+ */
12668
+ /**
12669
+ * JIT client for handling just-in-time authentication method registration flows.
12670
+ */
12671
+ class JitClient extends CustomAuthInteractionClientBase {
12672
+ /**
12673
+ * Gets available authentication methods for JIT registration.
12674
+ * @param parameters The parameters for getting auth methods.
12675
+ * @returns Promise that resolves to JitGetAuthMethodsResult.
12676
+ */
12677
+ async getAuthMethods(parameters) {
12678
+ const apiId = JIT_GET_AUTH_METHODS;
12679
+ const telemetryManager = this.initializeServerTelemetryManager(apiId);
12680
+ this.logger.verbose("Calling introspect endpoint for getting auth methods.", parameters.correlationId);
12681
+ const request = {
12682
+ continuation_token: parameters.continuationToken,
12683
+ correlationId: parameters.correlationId,
12684
+ telemetryManager: telemetryManager,
12685
+ };
12686
+ const introspectResponse = await this.customAuthApiClient.registerApi.introspect(request);
12687
+ this.logger.verbose("Introspect endpoint called for getting auth methods.", parameters.correlationId);
12688
+ return createJitGetAuthMethodsResult({
12689
+ correlationId: introspectResponse.correlation_id,
12690
+ continuationToken: introspectResponse.continuation_token,
12691
+ authMethods: introspectResponse.methods,
12692
+ });
12693
+ }
12694
+ /**
12695
+ * Challenges an authentication method for JIT registration.
12696
+ * @param parameters The parameters for challenging the auth method.
12697
+ * @returns Promise that resolves to either JitVerificationRequiredResult or JitCompletedResult.
12698
+ */
12699
+ async challengeAuthMethod(parameters) {
12700
+ const apiId = JIT_CHALLENGE_AUTH_METHOD;
12701
+ const telemetryManager = this.initializeServerTelemetryManager(apiId);
12702
+ this.logger.verbose("Calling challenge endpoint for getting auth method.", parameters.correlationId);
12703
+ const challengeReq = {
12704
+ continuation_token: parameters.continuationToken,
12705
+ challenge_type: parameters.authMethod.challenge_type,
12706
+ challenge_target: parameters.verificationContact,
12707
+ challenge_channel: parameters.authMethod.challenge_channel,
12708
+ correlationId: parameters.correlationId,
12709
+ telemetryManager: telemetryManager,
12710
+ };
12711
+ const challengeResponse = await this.customAuthApiClient.registerApi.challenge(challengeReq);
12712
+ this.logger.verbose("Challenge endpoint called for auth method registration.", parameters.correlationId);
12713
+ /*
12714
+ * Handle fast-pass scenario (preverified)
12715
+ * This occurs when the user selects the same email used during sign-up
12716
+ * Since the email was already verified during sign-up, no additional verification is needed
12717
+ */
12718
+ if (challengeResponse.challenge_type === ChallengeType.PREVERIFIED) {
12719
+ this.logger.verbose("Fast-pass scenario detected - completing registration without additional verification.", challengeResponse.correlation_id);
12720
+ // Use submitChallenge for fast-pass scenario with continuation_token grant type
12721
+ const fastPassParams = {
12722
+ correlationId: challengeResponse.correlation_id,
12723
+ continuationToken: challengeResponse.continuation_token,
12724
+ grantType: GrantType.CONTINUATION_TOKEN,
12725
+ scopes: parameters.scopes,
12726
+ username: parameters.username,
12727
+ claims: parameters.claims,
12728
+ };
12729
+ const completedResult = await this.submitChallenge(fastPassParams);
12730
+ return completedResult;
12731
+ }
12732
+ // Verification required
12733
+ return createJitVerificationRequiredResult({
12734
+ correlationId: challengeResponse.correlation_id,
12735
+ continuationToken: challengeResponse.continuation_token,
12736
+ challengeChannel: challengeResponse.challenge_channel,
12737
+ challengeTargetLabel: challengeResponse.challenge_target,
12738
+ codeLength: challengeResponse.code_length || DefaultCustomAuthApiCodeLength,
12739
+ });
12740
+ }
12741
+ /**
12742
+ * Submits challenge response and completes JIT registration.
12743
+ * @param parameters The parameters for submitting the challenge.
12744
+ * @returns Promise that resolves to JitCompletedResult.
12745
+ */
12746
+ async submitChallenge(parameters) {
12747
+ const apiId = JIT_SUBMIT_CHALLENGE;
12748
+ const telemetryManager = this.initializeServerTelemetryManager(apiId);
12749
+ this.logger.verbose("Calling continue endpoint for auth method challenge submission.", parameters.correlationId);
12750
+ // Submit challenge to complete registration
12751
+ const continueReq = {
12752
+ continuation_token: parameters.continuationToken,
12753
+ grant_type: parameters.grantType,
12754
+ ...(parameters.challenge && {
12755
+ oob: parameters.challenge,
12756
+ }),
12757
+ correlationId: parameters.correlationId,
12758
+ telemetryManager: telemetryManager,
12759
+ };
12760
+ const continueResponse = await this.customAuthApiClient.registerApi.continue(continueReq);
12761
+ this.logger.verbose("Continue endpoint called for auth method challenge submission.", parameters.correlationId);
12762
+ // Use continuation token to get authentication tokens
12763
+ const scopes = this.getScopes(parameters.scopes);
12764
+ const tokenRequest = {
12765
+ continuation_token: continueResponse.continuation_token,
12766
+ scope: scopes.join(" "),
12767
+ correlationId: continueResponse.correlation_id,
12768
+ telemetryManager: telemetryManager,
12769
+ ...(parameters.claims && {
12770
+ claims: parameters.claims,
12771
+ }),
12772
+ };
12773
+ const tokenResponse = await this.customAuthApiClient.signInApi.requestTokenWithContinuationToken(tokenRequest);
12774
+ const authResult = await this.handleTokenResponse(tokenResponse, scopes, continueResponse.correlation_id);
12775
+ return createJitCompletedResult({
12776
+ correlationId: continueResponse.correlation_id,
12777
+ authenticationResult: authResult,
12778
+ });
12779
+ }
12780
+ }
12781
+
12181
12782
  /*
12182
12783
  * Copyright (c) Microsoft Corporation. All rights reserved.
12183
12784
  * Licensed under the MIT License.
@@ -19792,6 +20393,7 @@ class CustomAuthStandardController extends StandardController {
19792
20393
  this.signUpClient = interactionClientFactory.create(SignUpClient);
19793
20394
  this.resetPasswordClient =
19794
20395
  interactionClientFactory.create(ResetPasswordClient);
20396
+ this.jitClient = interactionClientFactory.create(JitClient);
19795
20397
  this.cacheClient = interactionClientFactory.create(CustomAuthSilentCacheClient);
19796
20398
  }
19797
20399
  /*
@@ -19850,6 +20452,7 @@ class CustomAuthStandardController extends StandardController {
19850
20452
  config: this.customAuthConfig,
19851
20453
  signInClient: this.signInClient,
19852
20454
  cacheClient: this.cacheClient,
20455
+ jitClient: this.jitClient,
19853
20456
  username: signInInputs.username,
19854
20457
  codeLength: startResult.codeLength,
19855
20458
  scopes: signInInputs.scopes ?? [],
@@ -19868,6 +20471,7 @@ class CustomAuthStandardController extends StandardController {
19868
20471
  config: this.customAuthConfig,
19869
20472
  signInClient: this.signInClient,
19870
20473
  cacheClient: this.cacheClient,
20474
+ jitClient: this.jitClient,
19871
20475
  username: signInInputs.username,
19872
20476
  scopes: signInInputs.scopes ?? [],
19873
20477
  claims: signInInputs.claims,
@@ -19885,10 +20489,35 @@ class CustomAuthStandardController extends StandardController {
19885
20489
  username: signInInputs.username,
19886
20490
  claims: signInInputs.claims,
19887
20491
  };
19888
- const completedResult = await this.signInClient.submitPassword(submitPasswordParams);
20492
+ const submitPasswordResult = await this.signInClient.submitPassword(submitPasswordParams);
19889
20493
  this.logger.verbose("Sign-in flow completed.", correlationId);
19890
- const accountInfo = new CustomAuthAccountData(completedResult.authenticationResult.account, this.customAuthConfig, this.cacheClient, this.logger, correlationId);
19891
- return new SignInResult(new SignInCompletedState(), accountInfo);
20494
+ if (submitPasswordResult.type === SIGN_IN_COMPLETED_RESULT_TYPE) {
20495
+ const accountInfo = new CustomAuthAccountData(submitPasswordResult.authenticationResult.account, this.customAuthConfig, this.cacheClient, this.logger, correlationId);
20496
+ return new SignInResult(new SignInCompletedState(), accountInfo);
20497
+ }
20498
+ else if (submitPasswordResult.type ===
20499
+ SIGN_IN_JIT_REQUIRED_RESULT_TYPE) {
20500
+ // Authentication method registration is required - create AuthMethodRegistrationRequiredState
20501
+ this.logger.verbose("Authentication method registration required for sign-in.", correlationId);
20502
+ return new SignInResult(new AuthMethodRegistrationRequiredState({
20503
+ correlationId: correlationId,
20504
+ continuationToken: submitPasswordResult.continuationToken,
20505
+ logger: this.logger,
20506
+ config: this.customAuthConfig,
20507
+ jitClient: this.jitClient,
20508
+ cacheClient: this.cacheClient,
20509
+ authMethods: submitPasswordResult.authMethods,
20510
+ username: signInInputs.username,
20511
+ scopes: signInInputs.scopes ?? [],
20512
+ claims: signInInputs.claims,
20513
+ }));
20514
+ }
20515
+ else {
20516
+ // Unexpected result type
20517
+ const result = submitPasswordResult;
20518
+ const error = new Error(`Unexpected result type: ${result.type}`);
20519
+ return SignInResult.createWithError(error);
20520
+ }
19892
20521
  }
19893
20522
  this.logger.error("Unexpected sign-in result type. Returning error.", correlationId);
19894
20523
  throw new UnexpectedError("Unknow sign-in result type", correlationId);
@@ -19934,6 +20563,7 @@ class CustomAuthStandardController extends StandardController {
19934
20563
  signInClient: this.signInClient,
19935
20564
  signUpClient: this.signUpClient,
19936
20565
  cacheClient: this.cacheClient,
20566
+ jitClient: this.jitClient,
19937
20567
  username: signUpInputs.username,
19938
20568
  codeLength: startResult.codeLength,
19939
20569
  codeResendInterval: startResult.interval,
@@ -19950,6 +20580,7 @@ class CustomAuthStandardController extends StandardController {
19950
20580
  signInClient: this.signInClient,
19951
20581
  signUpClient: this.signUpClient,
19952
20582
  cacheClient: this.cacheClient,
20583
+ jitClient: this.jitClient,
19953
20584
  username: signUpInputs.username,
19954
20585
  }));
19955
20586
  }
@@ -19988,6 +20619,7 @@ class CustomAuthStandardController extends StandardController {
19988
20619
  signInClient: this.signInClient,
19989
20620
  resetPasswordClient: this.resetPasswordClient,
19990
20621
  cacheClient: this.cacheClient,
20622
+ jitClient: this.jitClient,
19991
20623
  username: resetPasswordInputs.username,
19992
20624
  codeLength: startResult.codeLength,
19993
20625
  }));
@@ -20874,6 +21506,14 @@ class UserAccountAttributeError extends CustomAuthError {
20874
21506
 
20875
21507
  exports.AuthFlowActionRequiredStateBase = AuthFlowActionRequiredStateBase;
20876
21508
  exports.AuthFlowStateBase = AuthFlowStateBase;
21509
+ exports.AuthMethodRegistrationChallengeMethodError = AuthMethodRegistrationChallengeMethodError;
21510
+ exports.AuthMethodRegistrationChallengeMethodResult = AuthMethodRegistrationChallengeMethodResult;
21511
+ exports.AuthMethodRegistrationCompletedState = AuthMethodRegistrationCompletedState;
21512
+ exports.AuthMethodRegistrationFailedState = AuthMethodRegistrationFailedState;
21513
+ exports.AuthMethodRegistrationRequiredState = AuthMethodRegistrationRequiredState;
21514
+ exports.AuthMethodRegistrationSubmitChallengeError = AuthMethodRegistrationSubmitChallengeError;
21515
+ exports.AuthMethodRegistrationSubmitChallengeResult = AuthMethodRegistrationSubmitChallengeResult;
21516
+ exports.AuthMethodVerificationRequiredState = AuthMethodVerificationRequiredState;
20877
21517
  exports.CustomAuthAccountData = CustomAuthAccountData;
20878
21518
  exports.CustomAuthApiError = CustomAuthApiError;
20879
21519
  exports.CustomAuthError = CustomAuthError;