Add ability to get email MFA challenge code

Can the ability to get the challenge code for the email factor be added? Currently you cannot have email templates on a per application basis. Each of our applications is really a website and each site would like to send custom branded emails but since we can’t get the code we cannot send custom emails differently between sites.

The reset password API for instance returns the recovery token when the sendEmail parameter is set to false, I was thinking something like this behavior. That way we can get the code and insert into our own email template.

1 Like

Try a hook: