@azure/msal-browser 4.22.1 → 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 (659) 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.mjs +1 -1
  301. package/dist/custom-auth-path/utils/Helpers.mjs +1 -1
  302. package/dist/custom-auth-path/utils/MsalFrameStatsUtils.mjs +1 -1
  303. package/dist/custom_auth/CustomAuthConstants.d.ts +2 -1
  304. package/dist/custom_auth/CustomAuthConstants.d.ts.map +1 -1
  305. package/dist/custom_auth/controller/CustomAuthStandardController.d.ts +1 -0
  306. package/dist/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
  307. package/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts +1 -0
  308. package/dist/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts.map +1 -1
  309. package/dist/custom_auth/core/auth_flow/AuthFlowResultBase.d.ts.map +1 -1
  310. package/dist/custom_auth/core/auth_flow/AuthFlowState.d.ts +1 -1
  311. package/dist/custom_auth/core/auth_flow/AuthFlowState.d.ts.map +1 -1
  312. package/dist/custom_auth/core/auth_flow/jit/AuthMethodDetails.d.ts +15 -0
  313. package/dist/custom_auth/core/auth_flow/jit/AuthMethodDetails.d.ts.map +1 -0
  314. package/dist/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.d.ts +22 -0
  315. package/dist/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.d.ts.map +1 -0
  316. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts +41 -0
  317. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts.map +1 -0
  318. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts +33 -0
  319. package/dist/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts.map +1 -0
  320. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.d.ts +4 -0
  321. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.d.ts.map +1 -0
  322. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.d.ts +4 -0
  323. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.d.ts.map +1 -0
  324. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts +74 -0
  325. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts.map +1 -0
  326. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationStateParameters.d.ts +20 -0
  327. package/dist/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationStateParameters.d.ts.map +1 -0
  328. package/dist/custom_auth/core/error/MsalCustomAuthError.d.ts +1 -2
  329. package/dist/custom_auth/core/error/MsalCustomAuthError.d.ts.map +1 -1
  330. package/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts +10 -0
  331. package/dist/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts.map +1 -1
  332. package/dist/custom_auth/core/interaction_client/jit/JitClient.d.ts +27 -0
  333. package/dist/custom_auth/core/interaction_client/jit/JitClient.d.ts.map +1 -0
  334. package/dist/custom_auth/core/interaction_client/jit/parameter/JitParams.d.ts +21 -0
  335. package/dist/custom_auth/core/interaction_client/jit/parameter/JitParams.d.ts.map +1 -0
  336. package/dist/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts +31 -0
  337. package/dist/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts.map +1 -0
  338. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts +2 -0
  339. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts.map +1 -1
  340. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts +3 -0
  341. package/dist/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts.map +1 -1
  342. package/dist/custom_auth/core/network_client/custom_auth_api/ICustomAuthApiClient.d.ts +2 -0
  343. package/dist/custom_auth/core/network_client/custom_auth_api/ICustomAuthApiClient.d.ts.map +1 -1
  344. package/dist/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.d.ts +18 -0
  345. package/dist/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.d.ts.map +1 -0
  346. package/dist/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts.map +1 -1
  347. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts +16 -1
  348. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts.map +1 -1
  349. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts +22 -0
  350. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts.map +1 -1
  351. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts +1 -0
  352. package/dist/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts.map +1 -1
  353. package/dist/custom_auth/core/telemetry/PublicApiId.d.ts +3 -0
  354. package/dist/custom_auth/core/telemetry/PublicApiId.d.ts.map +1 -1
  355. package/dist/custom_auth/index.d.ts +11 -3
  356. package/dist/custom_auth/index.d.ts.map +1 -1
  357. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.d.ts.map +1 -1
  358. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.d.ts.map +1 -1
  359. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts +2 -0
  360. package/dist/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts.map +1 -1
  361. package/dist/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts +10 -1
  362. package/dist/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts.map +1 -1
  363. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts +10 -2
  364. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts.map +1 -1
  365. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts +19 -2
  366. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts.map +1 -1
  367. package/dist/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.d.ts.map +1 -1
  368. package/dist/custom_auth/sign_in/auth_flow/state/SignInContinuationState.d.ts.map +1 -1
  369. package/dist/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.d.ts.map +1 -1
  370. package/dist/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts +2 -0
  371. package/dist/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts.map +1 -1
  372. package/dist/custom_auth/sign_in/interaction_client/SignInClient.d.ts +11 -12
  373. package/dist/custom_auth/sign_in/interaction_client/SignInClient.d.ts.map +1 -1
  374. package/dist/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts +7 -0
  375. package/dist/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts.map +1 -1
  376. package/dist/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.d.ts.map +1 -1
  377. package/dist/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.d.ts.map +1 -1
  378. package/dist/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.d.ts.map +1 -1
  379. package/dist/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts +2 -0
  380. package/dist/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts.map +1 -1
  381. package/dist/encode/Base64Decode.mjs +1 -1
  382. package/dist/encode/Base64Encode.mjs +1 -1
  383. package/dist/error/BrowserAuthError.mjs +1 -1
  384. package/dist/error/BrowserAuthErrorCodes.mjs +1 -1
  385. package/dist/error/BrowserConfigurationAuthError.mjs +1 -1
  386. package/dist/error/BrowserConfigurationAuthErrorCodes.mjs +1 -1
  387. package/dist/error/NativeAuthError.mjs +1 -1
  388. package/dist/error/NativeAuthErrorCodes.mjs +1 -1
  389. package/dist/error/NestedAppAuthError.mjs +1 -1
  390. package/dist/event/EventHandler.mjs +1 -1
  391. package/dist/event/EventMessage.mjs +1 -1
  392. package/dist/event/EventType.mjs +1 -1
  393. package/dist/index.mjs +1 -1
  394. package/dist/interaction_client/BaseInteractionClient.mjs +1 -1
  395. package/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs +1 -1
  396. package/dist/interaction_client/PlatformAuthInteractionClient.mjs +1 -1
  397. package/dist/interaction_client/PopupClient.mjs +1 -1
  398. package/dist/interaction_client/RedirectClient.mjs +1 -1
  399. package/dist/interaction_client/SilentAuthCodeClient.mjs +1 -1
  400. package/dist/interaction_client/SilentCacheClient.mjs +1 -1
  401. package/dist/interaction_client/SilentIframeClient.mjs +1 -1
  402. package/dist/interaction_client/SilentRefreshClient.mjs +1 -1
  403. package/dist/interaction_client/StandardInteractionClient.mjs +1 -1
  404. package/dist/interaction_handler/InteractionHandler.mjs +1 -1
  405. package/dist/interaction_handler/SilentHandler.mjs +1 -1
  406. package/dist/naa/BridgeError.mjs +1 -1
  407. package/dist/naa/BridgeProxy.mjs +1 -1
  408. package/dist/naa/BridgeStatusCode.mjs +1 -1
  409. package/dist/naa/TokenRequest.d.ts +1 -0
  410. package/dist/naa/TokenRequest.d.ts.map +1 -1
  411. package/dist/naa/mapping/NestedAppAuthAdapter.mjs +1 -1
  412. package/dist/navigation/NavigationClient.mjs +1 -1
  413. package/dist/network/FetchClient.mjs +1 -1
  414. package/dist/operatingcontext/BaseOperatingContext.mjs +1 -1
  415. package/dist/operatingcontext/NestedAppOperatingContext.mjs +1 -1
  416. package/dist/operatingcontext/StandardOperatingContext.mjs +1 -1
  417. package/dist/operatingcontext/UnknownOperatingContext.mjs +1 -1
  418. package/dist/packageMetadata.d.ts +1 -1
  419. package/dist/packageMetadata.mjs +2 -2
  420. package/dist/protocol/Authorize.mjs +1 -1
  421. package/dist/request/RequestHelpers.mjs +1 -1
  422. package/dist/response/ResponseHandler.mjs +1 -1
  423. package/dist/telemetry/BrowserPerformanceClient.mjs +1 -1
  424. package/dist/telemetry/BrowserPerformanceMeasurement.mjs +1 -1
  425. package/dist/utils/BrowserConstants.mjs +1 -1
  426. package/dist/utils/BrowserProtocolUtils.mjs +1 -1
  427. package/dist/utils/BrowserUtils.mjs +1 -1
  428. package/dist/utils/Helpers.mjs +1 -1
  429. package/dist/utils/MsalFrameStatsUtils.mjs +1 -1
  430. package/lib/custom-auth-path/msal-custom-auth.cjs +794 -154
  431. package/lib/custom-auth-path/msal-custom-auth.cjs.map +1 -1
  432. package/lib/custom-auth-path/types/controllers/NestedAppAuthController.d.ts.map +1 -1
  433. package/lib/custom-auth-path/types/custom_auth/CustomAuthConstants.d.ts +2 -1
  434. package/lib/custom-auth-path/types/custom_auth/CustomAuthConstants.d.ts.map +1 -1
  435. package/lib/custom-auth-path/types/custom_auth/controller/CustomAuthStandardController.d.ts +1 -0
  436. package/lib/custom-auth-path/types/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
  437. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts +1 -0
  438. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts.map +1 -1
  439. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/AuthFlowResultBase.d.ts.map +1 -1
  440. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/AuthFlowState.d.ts +1 -1
  441. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/AuthFlowState.d.ts.map +1 -1
  442. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/AuthMethodDetails.d.ts +15 -0
  443. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/AuthMethodDetails.d.ts.map +1 -0
  444. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.d.ts +22 -0
  445. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.d.ts.map +1 -0
  446. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts +41 -0
  447. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts.map +1 -0
  448. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts +33 -0
  449. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts.map +1 -0
  450. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.d.ts +4 -0
  451. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.d.ts.map +1 -0
  452. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.d.ts +4 -0
  453. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.d.ts.map +1 -0
  454. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts +74 -0
  455. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts.map +1 -0
  456. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationStateParameters.d.ts +20 -0
  457. package/lib/custom-auth-path/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationStateParameters.d.ts.map +1 -0
  458. package/lib/custom-auth-path/types/custom_auth/core/error/MsalCustomAuthError.d.ts +1 -2
  459. package/lib/custom-auth-path/types/custom_auth/core/error/MsalCustomAuthError.d.ts.map +1 -1
  460. package/lib/custom-auth-path/types/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts +10 -0
  461. package/lib/custom-auth-path/types/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts.map +1 -1
  462. package/lib/custom-auth-path/types/custom_auth/core/interaction_client/jit/JitClient.d.ts +27 -0
  463. package/lib/custom-auth-path/types/custom_auth/core/interaction_client/jit/JitClient.d.ts.map +1 -0
  464. package/lib/custom-auth-path/types/custom_auth/core/interaction_client/jit/parameter/JitParams.d.ts +21 -0
  465. package/lib/custom-auth-path/types/custom_auth/core/interaction_client/jit/parameter/JitParams.d.ts.map +1 -0
  466. package/lib/custom-auth-path/types/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts +31 -0
  467. package/lib/custom-auth-path/types/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts.map +1 -0
  468. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts +2 -0
  469. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts.map +1 -1
  470. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts +3 -0
  471. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts.map +1 -1
  472. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/ICustomAuthApiClient.d.ts +2 -0
  473. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/ICustomAuthApiClient.d.ts.map +1 -1
  474. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.d.ts +18 -0
  475. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.d.ts.map +1 -0
  476. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts.map +1 -1
  477. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts +16 -1
  478. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts.map +1 -1
  479. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts +22 -0
  480. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts.map +1 -1
  481. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts +1 -0
  482. package/lib/custom-auth-path/types/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts.map +1 -1
  483. package/lib/custom-auth-path/types/custom_auth/core/telemetry/PublicApiId.d.ts +3 -0
  484. package/lib/custom-auth-path/types/custom_auth/core/telemetry/PublicApiId.d.ts.map +1 -1
  485. package/lib/custom-auth-path/types/custom_auth/index.d.ts +11 -3
  486. package/lib/custom-auth-path/types/custom_auth/index.d.ts.map +1 -1
  487. package/lib/custom-auth-path/types/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.d.ts.map +1 -1
  488. package/lib/custom-auth-path/types/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.d.ts.map +1 -1
  489. package/lib/custom-auth-path/types/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts +2 -0
  490. package/lib/custom-auth-path/types/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts.map +1 -1
  491. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts +10 -1
  492. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts.map +1 -1
  493. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts +10 -2
  494. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts.map +1 -1
  495. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts +19 -2
  496. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts.map +1 -1
  497. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.d.ts.map +1 -1
  498. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/state/SignInContinuationState.d.ts.map +1 -1
  499. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.d.ts.map +1 -1
  500. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts +2 -0
  501. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts.map +1 -1
  502. package/lib/custom-auth-path/types/custom_auth/sign_in/interaction_client/SignInClient.d.ts +11 -12
  503. package/lib/custom-auth-path/types/custom_auth/sign_in/interaction_client/SignInClient.d.ts.map +1 -1
  504. package/lib/custom-auth-path/types/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts +7 -0
  505. package/lib/custom-auth-path/types/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts.map +1 -1
  506. package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.d.ts.map +1 -1
  507. package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.d.ts.map +1 -1
  508. package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.d.ts.map +1 -1
  509. package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts +2 -0
  510. package/lib/custom-auth-path/types/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts.map +1 -1
  511. package/lib/custom-auth-path/types/naa/TokenRequest.d.ts +1 -0
  512. package/lib/custom-auth-path/types/naa/TokenRequest.d.ts.map +1 -1
  513. package/lib/custom-auth-path/types/packageMetadata.d.ts +1 -1
  514. package/lib/msal-browser.cjs +67 -66
  515. package/lib/msal-browser.cjs.map +1 -1
  516. package/lib/msal-browser.js +67 -66
  517. package/lib/msal-browser.js.map +1 -1
  518. package/lib/msal-browser.min.js +60 -60
  519. package/lib/types/controllers/NestedAppAuthController.d.ts.map +1 -1
  520. package/lib/types/custom_auth/CustomAuthConstants.d.ts +2 -1
  521. package/lib/types/custom_auth/CustomAuthConstants.d.ts.map +1 -1
  522. package/lib/types/custom_auth/controller/CustomAuthStandardController.d.ts +1 -0
  523. package/lib/types/custom_auth/controller/CustomAuthStandardController.d.ts.map +1 -1
  524. package/lib/types/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts +1 -0
  525. package/lib/types/custom_auth/core/auth_flow/AuthFlowErrorBase.d.ts.map +1 -1
  526. package/lib/types/custom_auth/core/auth_flow/AuthFlowResultBase.d.ts.map +1 -1
  527. package/lib/types/custom_auth/core/auth_flow/AuthFlowState.d.ts +1 -1
  528. package/lib/types/custom_auth/core/auth_flow/AuthFlowState.d.ts.map +1 -1
  529. package/lib/types/custom_auth/core/auth_flow/jit/AuthMethodDetails.d.ts +15 -0
  530. package/lib/types/custom_auth/core/auth_flow/jit/AuthMethodDetails.d.ts.map +1 -0
  531. package/lib/types/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.d.ts +22 -0
  532. package/lib/types/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.d.ts.map +1 -0
  533. package/lib/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts +41 -0
  534. package/lib/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.d.ts.map +1 -0
  535. package/lib/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts +33 -0
  536. package/lib/types/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.d.ts.map +1 -0
  537. package/lib/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.d.ts +4 -0
  538. package/lib/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.d.ts.map +1 -0
  539. package/lib/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.d.ts +4 -0
  540. package/lib/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.d.ts.map +1 -0
  541. package/lib/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts +74 -0
  542. package/lib/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.d.ts.map +1 -0
  543. package/lib/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationStateParameters.d.ts +20 -0
  544. package/lib/types/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationStateParameters.d.ts.map +1 -0
  545. package/lib/types/custom_auth/core/error/MsalCustomAuthError.d.ts +1 -2
  546. package/lib/types/custom_auth/core/error/MsalCustomAuthError.d.ts.map +1 -1
  547. package/lib/types/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts +10 -0
  548. package/lib/types/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.d.ts.map +1 -1
  549. package/lib/types/custom_auth/core/interaction_client/jit/JitClient.d.ts +27 -0
  550. package/lib/types/custom_auth/core/interaction_client/jit/JitClient.d.ts.map +1 -0
  551. package/lib/types/custom_auth/core/interaction_client/jit/parameter/JitParams.d.ts +21 -0
  552. package/lib/types/custom_auth/core/interaction_client/jit/parameter/JitParams.d.ts.map +1 -0
  553. package/lib/types/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts +31 -0
  554. package/lib/types/custom_auth/core/interaction_client/jit/result/JitActionResult.d.ts.map +1 -0
  555. package/lib/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts +2 -0
  556. package/lib/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.d.ts.map +1 -1
  557. package/lib/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts +3 -0
  558. package/lib/types/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.d.ts.map +1 -1
  559. package/lib/types/custom_auth/core/network_client/custom_auth_api/ICustomAuthApiClient.d.ts +2 -0
  560. package/lib/types/custom_auth/core/network_client/custom_auth_api/ICustomAuthApiClient.d.ts.map +1 -1
  561. package/lib/types/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.d.ts +18 -0
  562. package/lib/types/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.d.ts.map +1 -0
  563. package/lib/types/custom_auth/core/network_client/custom_auth_api/SignInApiClient.d.ts.map +1 -1
  564. package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts +16 -1
  565. package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.d.ts.map +1 -1
  566. package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts +22 -0
  567. package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.d.ts.map +1 -1
  568. package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts +1 -0
  569. package/lib/types/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.d.ts.map +1 -1
  570. package/lib/types/custom_auth/core/telemetry/PublicApiId.d.ts +3 -0
  571. package/lib/types/custom_auth/core/telemetry/PublicApiId.d.ts.map +1 -1
  572. package/lib/types/custom_auth/index.d.ts +11 -3
  573. package/lib/types/custom_auth/index.d.ts.map +1 -1
  574. package/lib/types/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.d.ts.map +1 -1
  575. package/lib/types/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.d.ts.map +1 -1
  576. package/lib/types/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts +2 -0
  577. package/lib/types/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.d.ts.map +1 -1
  578. package/lib/types/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts +10 -1
  579. package/lib/types/custom_auth/sign_in/auth_flow/result/SignInResult.d.ts.map +1 -1
  580. package/lib/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts +10 -2
  581. package/lib/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.d.ts.map +1 -1
  582. package/lib/types/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts +19 -2
  583. package/lib/types/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.d.ts.map +1 -1
  584. package/lib/types/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.d.ts.map +1 -1
  585. package/lib/types/custom_auth/sign_in/auth_flow/state/SignInContinuationState.d.ts.map +1 -1
  586. package/lib/types/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.d.ts.map +1 -1
  587. package/lib/types/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts +2 -0
  588. package/lib/types/custom_auth/sign_in/auth_flow/state/SignInStateParameters.d.ts.map +1 -1
  589. package/lib/types/custom_auth/sign_in/interaction_client/SignInClient.d.ts +11 -12
  590. package/lib/types/custom_auth/sign_in/interaction_client/SignInClient.d.ts.map +1 -1
  591. package/lib/types/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts +7 -0
  592. package/lib/types/custom_auth/sign_in/interaction_client/result/SignInActionResult.d.ts.map +1 -1
  593. package/lib/types/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.d.ts.map +1 -1
  594. package/lib/types/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.d.ts.map +1 -1
  595. package/lib/types/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.d.ts.map +1 -1
  596. package/lib/types/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts +2 -0
  597. package/lib/types/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.d.ts.map +1 -1
  598. package/lib/types/naa/TokenRequest.d.ts +1 -0
  599. package/lib/types/naa/TokenRequest.d.ts.map +1 -1
  600. package/lib/types/packageMetadata.d.ts +1 -1
  601. package/package.json +2 -2
  602. package/src/controllers/NestedAppAuthController.ts +1 -0
  603. package/src/custom_auth/CustomAuthConstants.ts +1 -0
  604. package/src/custom_auth/controller/CustomAuthStandardController.ts +62 -14
  605. package/src/custom_auth/core/auth_flow/AuthFlowErrorBase.ts +8 -0
  606. package/src/custom_auth/core/auth_flow/AuthFlowResultBase.ts +14 -0
  607. package/src/custom_auth/core/auth_flow/AuthFlowState.ts +1 -1
  608. package/src/custom_auth/core/auth_flow/jit/AuthMethodDetails.ts +21 -0
  609. package/src/custom_auth/core/auth_flow/jit/error_type/AuthMethodRegistrationError.ts +32 -0
  610. package/src/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationChallengeMethodResult.ts +79 -0
  611. package/src/custom_auth/core/auth_flow/jit/result/AuthMethodRegistrationSubmitChallengeResult.ts +64 -0
  612. package/src/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationCompletedState.ts +8 -0
  613. package/src/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationFailedState.ts +8 -0
  614. package/src/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationState.ts +260 -0
  615. package/src/custom_auth/core/auth_flow/jit/state/AuthMethodRegistrationStateParameters.ts +30 -0
  616. package/src/custom_auth/core/error/MsalCustomAuthError.ts +2 -5
  617. package/src/custom_auth/core/interaction_client/CustomAuthInteractionClientBase.ts +46 -0
  618. package/src/custom_auth/core/interaction_client/jit/JitClient.ts +206 -0
  619. package/src/custom_auth/core/interaction_client/jit/parameter/JitParams.ts +29 -0
  620. package/src/custom_auth/core/interaction_client/jit/result/JitActionResult.ts +67 -0
  621. package/src/custom_auth/core/network_client/custom_auth_api/CustomAuthApiClient.ts +7 -0
  622. package/src/custom_auth/core/network_client/custom_auth_api/CustomAuthApiEndpoint.ts +4 -0
  623. package/src/custom_auth/core/network_client/custom_auth_api/ICustomAuthApiClient.ts +2 -0
  624. package/src/custom_auth/core/network_client/custom_auth_api/RegisterApiClient.ts +95 -0
  625. package/src/custom_auth/core/network_client/custom_auth_api/SignInApiClient.ts +2 -1
  626. package/src/custom_auth/core/network_client/custom_auth_api/types/ApiRequestTypes.ts +20 -1
  627. package/src/custom_auth/core/network_client/custom_auth_api/types/ApiResponseTypes.ts +27 -0
  628. package/src/custom_auth/core/network_client/custom_auth_api/types/ApiSuberrors.ts +1 -0
  629. package/src/custom_auth/core/telemetry/PublicApiId.ts +5 -0
  630. package/src/custom_auth/index.ts +35 -4
  631. package/src/custom_auth/reset_password/auth_flow/state/ResetPasswordCodeRequiredState.ts +2 -0
  632. package/src/custom_auth/reset_password/auth_flow/state/ResetPasswordPasswordRequiredState.ts +1 -0
  633. package/src/custom_auth/reset_password/auth_flow/state/ResetPasswordStateParameters.ts +2 -0
  634. package/src/custom_auth/sign_in/auth_flow/result/SignInResult.ts +14 -1
  635. package/src/custom_auth/sign_in/auth_flow/result/SignInSubmitCodeResult.ts +17 -2
  636. package/src/custom_auth/sign_in/auth_flow/result/SignInSubmitPasswordResult.ts +30 -2
  637. package/src/custom_auth/sign_in/auth_flow/state/SignInCodeRequiredState.ts +1 -0
  638. package/src/custom_auth/sign_in/auth_flow/state/SignInContinuationState.ts +50 -9
  639. package/src/custom_auth/sign_in/auth_flow/state/SignInPasswordRequiredState.ts +50 -12
  640. package/src/custom_auth/sign_in/auth_flow/state/SignInStateParameters.ts +2 -0
  641. package/src/custom_auth/sign_in/interaction_client/SignInClient.ts +85 -83
  642. package/src/custom_auth/sign_in/interaction_client/result/SignInActionResult.ts +16 -0
  643. package/src/custom_auth/sign_up/auth_flow/state/SignUpAttributesRequiredState.ts +1 -0
  644. package/src/custom_auth/sign_up/auth_flow/state/SignUpCodeRequiredState.ts +4 -0
  645. package/src/custom_auth/sign_up/auth_flow/state/SignUpPasswordRequiredState.ts +2 -0
  646. package/src/custom_auth/sign_up/auth_flow/state/SignUpStateParameters.ts +2 -0
  647. package/src/naa/TokenRequest.ts +1 -0
  648. package/src/packageMetadata.ts +1 -1
  649. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.d.ts +0 -21
  650. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.d.ts.map +0 -1
  651. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.mjs +0 -24
  652. package/dist/custom-auth-path/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.mjs.map +0 -1
  653. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.d.ts +0 -21
  654. package/dist/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.d.ts.map +0 -1
  655. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.d.ts +0 -21
  656. package/lib/custom-auth-path/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.d.ts.map +0 -1
  657. package/lib/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.d.ts +0 -21
  658. package/lib/types/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.d.ts.map +0 -1
  659. package/src/custom_auth/sign_in/auth_flow/result/SignInSubmitCredentialResult.ts +0 -43
@@ -29,6 +29,8 @@ import { DefaultPackageInfo } from "../CustomAuthConstants.js";
29
29
  import {
30
30
  SIGN_IN_CODE_SEND_RESULT_TYPE,
31
31
  SIGN_IN_PASSWORD_REQUIRED_RESULT_TYPE,
32
+ SIGN_IN_COMPLETED_RESULT_TYPE,
33
+ SIGN_IN_JIT_REQUIRED_RESULT_TYPE,
32
34
  } from "../sign_in/interaction_client/result/SignInActionResult.js";
33
35
  import { SignUpClient } from "../sign_up/interaction_client/SignUpClient.js";
34
36
  import { CustomAuthInterationClientFactory } from "../core/interaction_client/CustomAuthInterationClientFactory.js";
@@ -40,6 +42,7 @@ import { ICustomAuthApiClient } from "../core/network_client/custom_auth_api/ICu
40
42
  import { CustomAuthApiClient } from "../core/network_client/custom_auth_api/CustomAuthApiClient.js";
41
43
  import { FetchHttpClient } from "../core/network_client/http_client/FetchHttpClient.js";
42
44
  import { ResetPasswordClient } from "../reset_password/interaction_client/ResetPasswordClient.js";
45
+ import { JitClient } from "../core/interaction_client/jit/JitClient.js";
43
46
  import { NoCachedAccountFoundError } from "../core/error/NoCachedAccountFoundError.js";
44
47
  import * as ArgumentValidator from "../core/utils/ArgumentValidator.js";
45
48
  import { UserAlreadySignedInError } from "../core/error/UserAlreadySignedInError.js";
@@ -48,6 +51,7 @@ import { UnsupportedEnvironmentError } from "../core/error/UnsupportedEnvironmen
48
51
  import { SignInCodeRequiredState } from "../sign_in/auth_flow/state/SignInCodeRequiredState.js";
49
52
  import { SignInPasswordRequiredState } from "../sign_in/auth_flow/state/SignInPasswordRequiredState.js";
50
53
  import { SignInCompletedState } from "../sign_in/auth_flow/state/SignInCompletedState.js";
54
+ import { AuthMethodRegistrationRequiredState } from "../core/auth_flow/jit/state/AuthMethodRegistrationState.js";
51
55
  import { SignUpCodeRequiredState } from "../sign_up/auth_flow/state/SignUpCodeRequiredState.js";
52
56
  import { SignUpPasswordRequiredState } from "../sign_up/auth_flow/state/SignUpPasswordRequiredState.js";
53
57
  import { ResetPasswordCodeRequiredState } from "../reset_password/auth_flow/state/ResetPasswordCodeRequiredState.js";
@@ -63,6 +67,7 @@ export class CustomAuthStandardController
63
67
  private readonly signInClient: SignInClient;
64
68
  private readonly signUpClient: SignUpClient;
65
69
  private readonly resetPasswordClient: ResetPasswordClient;
70
+ private readonly jitClient: JitClient;
66
71
  private readonly cacheClient: CustomAuthSilentCacheClient;
67
72
  private readonly customAuthConfig: CustomAuthBrowserConfiguration;
68
73
  private readonly authority: CustomAuthAuthority;
@@ -123,6 +128,7 @@ export class CustomAuthStandardController
123
128
  this.signUpClient = interactionClientFactory.create(SignUpClient);
124
129
  this.resetPasswordClient =
125
130
  interactionClientFactory.create(ResetPasswordClient);
131
+ this.jitClient = interactionClientFactory.create(JitClient);
126
132
  this.cacheClient = interactionClientFactory.create(
127
133
  CustomAuthSilentCacheClient
128
134
  );
@@ -235,6 +241,7 @@ export class CustomAuthStandardController
235
241
  config: this.customAuthConfig,
236
242
  signInClient: this.signInClient,
237
243
  cacheClient: this.cacheClient,
244
+ jitClient: this.jitClient,
238
245
  username: signInInputs.username,
239
246
  codeLength: startResult.codeLength,
240
247
  scopes: signInInputs.scopes ?? [],
@@ -264,6 +271,7 @@ export class CustomAuthStandardController
264
271
  config: this.customAuthConfig,
265
272
  signInClient: this.signInClient,
266
273
  cacheClient: this.cacheClient,
274
+ jitClient: this.jitClient,
267
275
  username: signInInputs.username,
268
276
  scopes: signInInputs.scopes ?? [],
269
277
  claims: signInInputs.claims,
@@ -289,24 +297,61 @@ export class CustomAuthStandardController
289
297
  claims: signInInputs.claims,
290
298
  };
291
299
 
292
- const completedResult = await this.signInClient.submitPassword(
293
- submitPasswordParams
294
- );
300
+ const submitPasswordResult =
301
+ await this.signInClient.submitPassword(
302
+ submitPasswordParams
303
+ );
295
304
 
296
305
  this.logger.verbose("Sign-in flow completed.", correlationId);
297
306
 
298
- const accountInfo = new CustomAuthAccountData(
299
- completedResult.authenticationResult.account,
300
- this.customAuthConfig,
301
- this.cacheClient,
302
- this.logger,
303
- correlationId
304
- );
307
+ if (
308
+ submitPasswordResult.type === SIGN_IN_COMPLETED_RESULT_TYPE
309
+ ) {
310
+ const accountInfo = new CustomAuthAccountData(
311
+ submitPasswordResult.authenticationResult.account,
312
+ this.customAuthConfig,
313
+ this.cacheClient,
314
+ this.logger,
315
+ correlationId
316
+ );
305
317
 
306
- return new SignInResult(
307
- new SignInCompletedState(),
308
- accountInfo
309
- );
318
+ return new SignInResult(
319
+ new SignInCompletedState(),
320
+ accountInfo
321
+ );
322
+ } else if (
323
+ submitPasswordResult.type ===
324
+ SIGN_IN_JIT_REQUIRED_RESULT_TYPE
325
+ ) {
326
+ // Authentication method registration is required - create AuthMethodRegistrationRequiredState
327
+ this.logger.verbose(
328
+ "Authentication method registration required for sign-in.",
329
+ correlationId
330
+ );
331
+
332
+ return new SignInResult(
333
+ new AuthMethodRegistrationRequiredState({
334
+ correlationId: correlationId,
335
+ continuationToken:
336
+ submitPasswordResult.continuationToken,
337
+ logger: this.logger,
338
+ config: this.customAuthConfig,
339
+ jitClient: this.jitClient,
340
+ cacheClient: this.cacheClient,
341
+ authMethods: submitPasswordResult.authMethods,
342
+ username: signInInputs.username,
343
+ scopes: signInInputs.scopes ?? [],
344
+ claims: signInInputs.claims,
345
+ })
346
+ );
347
+ } else {
348
+ // Unexpected result type
349
+ const result = submitPasswordResult as { type: string };
350
+ const error = new Error(
351
+ `Unexpected result type: ${result.type}`
352
+ );
353
+ return SignInResult.createWithError(error);
354
+ }
310
355
  }
311
356
 
312
357
  this.logger.error(
@@ -391,6 +436,7 @@ export class CustomAuthStandardController
391
436
  signInClient: this.signInClient,
392
437
  signUpClient: this.signUpClient,
393
438
  cacheClient: this.cacheClient,
439
+ jitClient: this.jitClient,
394
440
  username: signUpInputs.username,
395
441
  codeLength: startResult.codeLength,
396
442
  codeResendInterval: startResult.interval,
@@ -414,6 +460,7 @@ export class CustomAuthStandardController
414
460
  signInClient: this.signInClient,
415
461
  signUpClient: this.signUpClient,
416
462
  cacheClient: this.cacheClient,
463
+ jitClient: this.jitClient,
417
464
  username: signUpInputs.username,
418
465
  })
419
466
  );
@@ -483,6 +530,7 @@ export class CustomAuthStandardController
483
530
  signInClient: this.signInClient,
484
531
  resetPasswordClient: this.resetPasswordClient,
485
532
  cacheClient: this.cacheClient,
533
+ jitClient: this.jitClient,
486
534
  username: resetPasswordInputs.username,
487
535
  codeLength: startResult.codeLength,
488
536
  })
@@ -139,6 +139,14 @@ export abstract class AuthFlowErrorBase {
139
139
  this.errorData.errorCodes?.includes(50142) === true
140
140
  );
141
141
  }
142
+
143
+ protected isInvalidAuthMethodRegistrationInputError(): boolean {
144
+ return (
145
+ this.errorData instanceof CustomAuthApiError &&
146
+ this.errorData.error === CustomAuthApiErrorCode.INVALID_REQUEST &&
147
+ this.errorData.errorCodes?.includes(901001) === true
148
+ );
149
+ }
142
150
  }
143
151
 
144
152
  export abstract class AuthActionErrorBase extends AuthFlowErrorBase {
@@ -42,10 +42,24 @@ export abstract class AuthFlowResultBase<
42
42
  if (error instanceof CustomAuthError) {
43
43
  return error;
44
44
  } else if (error instanceof AuthError) {
45
+ const errorCodes: Array<number> = [];
46
+
47
+ if ("errorNo" in error) {
48
+ if (typeof error.errorNo === "string") {
49
+ const code = Number(error.errorNo);
50
+ if (!isNaN(code)) {
51
+ errorCodes.push(code);
52
+ }
53
+ } else if (typeof error.errorNo === "number") {
54
+ errorCodes.push(error.errorNo);
55
+ }
56
+ }
57
+
45
58
  return new MsalCustomAuthError(
46
59
  error.errorCode,
47
60
  error.errorMessage,
48
61
  error.subError,
62
+ errorCodes,
49
63
  error.correlationId
50
64
  );
51
65
  } else {
@@ -31,7 +31,7 @@ export abstract class AuthFlowActionRequiredStateBase<
31
31
  * Creates a new instance of AuthFlowActionRequiredStateBase.
32
32
  * @param stateParameters The parameters for the auth state.
33
33
  */
34
- protected constructor(protected readonly stateParameters: TParameter) {
34
+ constructor(protected readonly stateParameters: TParameter) {
35
35
  ensureArgumentIsNotEmptyString(
36
36
  "correlationId",
37
37
  stateParameters.correlationId
@@ -0,0 +1,21 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+
6
+ import { AuthenticationMethod } from "../../network_client/custom_auth_api/types/ApiResponseTypes.js";
7
+
8
+ /**
9
+ * Details for an authentication method to be registered.
10
+ */
11
+ export interface AuthMethodDetails {
12
+ /**
13
+ * The authentication method type to register.
14
+ */
15
+ authMethodType: AuthenticationMethod;
16
+
17
+ /**
18
+ * The verification contact (email, phone number) for the authentication method.
19
+ */
20
+ verificationContact: string;
21
+ }
@@ -0,0 +1,32 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+
6
+ import { AuthActionErrorBase } from "../../AuthFlowErrorBase.js";
7
+
8
+ /**
9
+ * Error that occurred during authentication method challenge request.
10
+ */
11
+ export class AuthMethodRegistrationChallengeMethodError extends AuthActionErrorBase {
12
+ /**
13
+ * Checks if the input for auth method registration is incorrect.
14
+ * @returns true if the input is incorrect, false otherwise.
15
+ */
16
+ isInvalidInput(): boolean {
17
+ return this.isInvalidAuthMethodRegistrationInputError();
18
+ }
19
+ }
20
+
21
+ /**
22
+ * Error that occurred during authentication method challenge submission.
23
+ */
24
+ export class AuthMethodRegistrationSubmitChallengeError extends AuthActionErrorBase {
25
+ /**
26
+ * Checks if the submitted challenge code is incorrect.
27
+ * @returns true if the challenge code is incorrect, false otherwise.
28
+ */
29
+ isIncorrectChallenge(): boolean {
30
+ return this.isInvalidCodeError();
31
+ }
32
+ }
@@ -0,0 +1,79 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+
6
+ import { AuthFlowResultBase } from "../../AuthFlowResultBase.js";
7
+ import { AuthMethodRegistrationChallengeMethodError } from "../error_type/AuthMethodRegistrationError.js";
8
+ import type { AuthMethodVerificationRequiredState } from "../state/AuthMethodRegistrationState.js";
9
+ import { CustomAuthAccountData } from "../../../../get_account/auth_flow/CustomAuthAccountData.js";
10
+ import { AuthMethodRegistrationCompletedState } from "../state/AuthMethodRegistrationCompletedState.js";
11
+ import { AuthMethodRegistrationFailedState } from "../state/AuthMethodRegistrationFailedState.js";
12
+
13
+ /**
14
+ * Result of challenging an authentication method for registration.
15
+ * Uses base state type to avoid circular dependencies.
16
+ */
17
+ export class AuthMethodRegistrationChallengeMethodResult extends AuthFlowResultBase<
18
+ AuthMethodRegistrationChallengeMethodResultState,
19
+ AuthMethodRegistrationChallengeMethodError,
20
+ CustomAuthAccountData
21
+ > {
22
+ /**
23
+ * Creates an AuthMethodRegistrationChallengeMethodResult with an error.
24
+ * @param error The error that occurred.
25
+ * @returns The AuthMethodRegistrationChallengeMethodResult with error.
26
+ */
27
+ static createWithError(
28
+ error: unknown
29
+ ): AuthMethodRegistrationChallengeMethodResult {
30
+ const result = new AuthMethodRegistrationChallengeMethodResult(
31
+ new AuthMethodRegistrationFailedState()
32
+ );
33
+ result.error = new AuthMethodRegistrationChallengeMethodError(
34
+ AuthMethodRegistrationChallengeMethodResult.createErrorData(error)
35
+ );
36
+ return result;
37
+ }
38
+
39
+ /**
40
+ * Checks if the result indicates that verification is required.
41
+ * @returns true if verification is required, false otherwise.
42
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
43
+ */
44
+ isVerificationRequired(): boolean {
45
+ return (
46
+ this.state.constructor?.name ===
47
+ "AuthMethodVerificationRequiredState"
48
+ );
49
+ }
50
+
51
+ /**
52
+ * Checks if the result indicates that registration is completed (fast-pass scenario).
53
+ * @returns true if registration is completed, false otherwise.
54
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
55
+ */
56
+ isCompleted(): boolean {
57
+ return (
58
+ this.state.constructor?.name ===
59
+ "AuthMethodRegistrationCompletedState"
60
+ );
61
+ }
62
+
63
+ /**
64
+ * Checks if the result is in a failed state.
65
+ * @returns true if the result is failed, false otherwise.
66
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
67
+ */
68
+ isFailed(): boolean {
69
+ return this.state instanceof AuthMethodRegistrationFailedState;
70
+ }
71
+ }
72
+
73
+ /**
74
+ * Type definition for possible states in AuthMethodRegistrationChallengeMethodResult.
75
+ */
76
+ export type AuthMethodRegistrationChallengeMethodResultState =
77
+ | AuthMethodVerificationRequiredState
78
+ | AuthMethodRegistrationCompletedState
79
+ | AuthMethodRegistrationFailedState;
@@ -0,0 +1,64 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+
6
+ import { AuthFlowResultBase } from "../../AuthFlowResultBase.js";
7
+ import { AuthMethodRegistrationSubmitChallengeError } from "../error_type/AuthMethodRegistrationError.js";
8
+ import { CustomAuthAccountData } from "../../../../get_account/auth_flow/CustomAuthAccountData.js";
9
+ import { AuthMethodRegistrationFailedState } from "../state/AuthMethodRegistrationFailedState.js";
10
+ import { AuthMethodRegistrationCompletedState } from "../state/AuthMethodRegistrationCompletedState.js";
11
+
12
+ /**
13
+ * Result of submitting a challenge for authentication method registration.
14
+ */
15
+ export class AuthMethodRegistrationSubmitChallengeResult extends AuthFlowResultBase<
16
+ AuthMethodRegistrationSubmitChallengeResultState,
17
+ AuthMethodRegistrationSubmitChallengeError,
18
+ CustomAuthAccountData
19
+ > {
20
+ /**
21
+ * Creates an AuthMethodRegistrationSubmitChallengeResult with an error.
22
+ * @param error The error that occurred.
23
+ * @returns The AuthMethodRegistrationSubmitChallengeResult with error.
24
+ */
25
+ static createWithError(
26
+ error: unknown
27
+ ): AuthMethodRegistrationSubmitChallengeResult {
28
+ const result = new AuthMethodRegistrationSubmitChallengeResult(
29
+ new AuthMethodRegistrationFailedState()
30
+ );
31
+ result.error = new AuthMethodRegistrationSubmitChallengeError(
32
+ AuthMethodRegistrationSubmitChallengeResult.createErrorData(error)
33
+ );
34
+ return result;
35
+ }
36
+
37
+ /**
38
+ * Checks if the result indicates that registration is completed.
39
+ * @returns true if registration is completed, false otherwise.
40
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
41
+ */
42
+ isCompleted(): boolean {
43
+ return (
44
+ this.state.constructor?.name ===
45
+ "AuthMethodRegistrationCompletedState"
46
+ );
47
+ }
48
+
49
+ /**
50
+ * Checks if the result is in a failed state.
51
+ * @returns true if the result is failed, false otherwise.
52
+ * @warning This API is experimental. It may be changed in the future without notice. Do not use in production applications.
53
+ */
54
+ isFailed(): boolean {
55
+ return this.state instanceof AuthMethodRegistrationFailedState;
56
+ }
57
+ }
58
+
59
+ /**
60
+ * Type definition for possible states in AuthMethodRegistrationSubmitChallengeResult.
61
+ */
62
+ export type AuthMethodRegistrationSubmitChallengeResultState =
63
+ | AuthMethodRegistrationCompletedState
64
+ | AuthMethodRegistrationFailedState;
@@ -0,0 +1,8 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+
6
+ import { AuthFlowStateBase } from "../../AuthFlowState.js";
7
+
8
+ export class AuthMethodRegistrationCompletedState extends AuthFlowStateBase {}
@@ -0,0 +1,8 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+
6
+ import { AuthFlowStateBase } from "../../AuthFlowState.js";
7
+
8
+ export class AuthMethodRegistrationFailedState extends AuthFlowStateBase {}