@azure/msal-browser
Version:
Microsoft Authentication Library for js
39 lines (36 loc) • 1.8 kB
JavaScript
/*! @azure/msal-browser v5.25.0 2026-10-06 */
;
import { CustomAuthFlowScenarioV2 } from '../auth_flow/v2/CustomAuthFlowScenarioV2.mjs';
import { SIGN_UP_V2_COMPLETE, SIGN_UP_V2_SUBMIT_ATTRIBUTES, SIGN_UP_V2_RESEND_CODE, SIGN_UP_V2_SUBMIT_CODE, SIGN_UP_V2_CHALLENGE, SIGN_IN_V2_COMPLETE, SIGN_IN_V2_SUBMIT_PASSWORD, SIGN_IN_V2_CHALLENGE, SIGN_IN_V2_SUBMIT_CODE, SIGN_IN_AFTER_PASSWORD_RESET, RESET_PASSWORD_V2_SUBMIT, RESET_PASSWORD_V2_RESEND_CODE, RESET_PASSWORD_V2_SUBMIT_CODE, RESET_PASSWORD_V2_CHALLENGE } from './PublicApiId.mjs';
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
const FLOW_STEP_API_IDS_V2 = {
[CustomAuthFlowScenarioV2.PasswordReset]: {
requestChallenge: RESET_PASSWORD_V2_CHALLENGE,
submitCode: RESET_PASSWORD_V2_SUBMIT_CODE,
resendCode: RESET_PASSWORD_V2_RESEND_CODE,
submitNewPassword: RESET_PASSWORD_V2_SUBMIT,
signInWithContinuation: SIGN_IN_AFTER_PASSWORD_RESET,
},
[CustomAuthFlowScenarioV2.SignIn]: {
requestChallenge: SIGN_IN_V2_CHALLENGE,
submitCode: SIGN_IN_V2_SUBMIT_CODE,
resendCode: SIGN_IN_V2_CHALLENGE,
submitPassword: SIGN_IN_V2_SUBMIT_PASSWORD,
signInWithContinuation: SIGN_IN_V2_COMPLETE,
},
[CustomAuthFlowScenarioV2.SignUp]: {
requestChallenge: SIGN_UP_V2_CHALLENGE,
submitCode: SIGN_UP_V2_SUBMIT_CODE,
resendCode: SIGN_UP_V2_RESEND_CODE,
submitAttributes: SIGN_UP_V2_SUBMIT_ATTRIBUTES,
signInWithContinuation: SIGN_UP_V2_COMPLETE,
},
};
function getPublicApiIdV2(scenario, step) {
return FLOW_STEP_API_IDS_V2[scenario]?.[step];
}
export { getPublicApiIdV2 };
//# sourceMappingURL=FlowApiIdHelperV2.mjs.map