ChallengeWith method for MFA

We are planning to add Phone message as a new factor for MFA and at the moment we just have the email as available factor.
I am trying to add a new action to post login with the code below it shows the screen for email but it does not show the link to change to a different factor.
Both email and phone are enabled in the tenant.
Could you please help me?

api.authentication.challengeWith({ type: “email” }, { additionalFactors: [{ type: ‘phone’}] });

Best regards.