Customise MFA enrolment flow

I have MFA set up and have 2 methods available: OTP and Email.

At the moment, when a new user logs in, they are asked to enrol with OTP as their email is not yet verified and email MFA is only possible if the user has a verified email.

I would like to present a new user with MFA choice from the get go, so they can choose between OTP and Email the first time they try to log in. However, the first time they log in, their email is not verified and the only option they are presented with is OTP.

I checked this article first and it makes perfect sense: MFA with Email as an Only Factor

But I wonder if I can present the user with the 2 options and, if they choose email, direct them to the email verification flow, sending a verification email.

Is this possible?

1 Like

Hi @simoesj,

Welcome to the Auth0 Community!

If you want the email MFA option to take you to the email verification flow if the user’s email is not verified, you will have to create a custom menu in your app. You can create custom enrollment tickets using the Management API. You can have the email option check if the user’s email is verified. If it is, create an email MFA enrollment ticket, if not, create an email verification ticket.

If you have any other questions, feel free to reach out.

Have a good one,
Vlad