Update Email and Phone before triggering MFA - Login flow

Hello,

I have a project requirement, when the user login in- > Use custom API to authenticate and get the user response. The authentication is fine. The challenge I am facing is that both the email and phone are not verified.

Is the a way to prompt the user to enter new email address and phone or just email address and trigger verification email and MFA using the new email. Then update user’s profile.

Can I use Action or Rule to trigger such flow along with a UI prompt? Any inputs are appreciated.

Thanks -Mat

Anyone has any pointers to the request.

Thanks.