void sendOphanComponentEventFromQueryParamsServer()

in src/server/lib/okta/idx/shared/submitPasscode.ts [201:235]


		void sendOphanComponentEventFromQueryParamsServer(
			expressRes.locals.queryParams.componentEventParams,
			'SIGN_IN',
			'web',
			expressRes.locals.ophanConfig.consentUUID,
		);
	}

	// redirect the user to set a global session and then back to completing the authorization flow
	return expressRes.redirect(303, loginRedirectUrl);
};

/**
 * @name skipPasswordEnrollment
 * @description Okta IDX API/Interaction Code flow - After email factor verification for a new account, we can choose to skip setting a password for the user, and set the emailValidated flag in Okta, and complete the authorization code flow.
 * @param stateHandle - The state handle from the previous step
 * @param expressReq - The express request object
 * @param expressRes - The express response object
 * @param ip - The ip address
 * @returns Promise<void> - Performs a express redirect
 */
export const skipPasswordEnrollment = async ({
	stateHandle,
	expressReq,
	expressRes,
	ip,
}: {
	stateHandle: IdxBaseResponse['stateHandle'];
	expressReq: Request;
	expressRes: ResponseWithRequestState;
	ip?: string;
}): Promise<void> => {
	const skipResponse = await skip(stateHandle, ip);

	if (!isChallengeAnswerCompleteLoginResponse(skipResponse)) {