Given the code as a Login rule…
function multifactorAuthentication(user, context, callback) {
if (context.clientID === configuration.WEB_SITE_APP_ID ||
context.clientID === configuration.NATIVE_APP_ID) {
context.multifactor = {
provider: 'any',
allowRememberBrowser: false
};
}
callback(null, user, context);
}
Instead of provider: 'any' I’d like to specify specific factors e.g. ‘One Time Password’, ‘Email’, or ‘Recovery Code’ based on user.metadata. Is this possible?
This article indicated to me that any, guardian, google-authenticator, duo are the only options. Customize Multi-Factor Authentication Pages (auth0.com)