skip to content
Alvin Lucillo

Disable multifactor auth

/ 1 min read

💻 Tech

For specific reasons that you want to bypass auth, you can do that using auth0 action. An action is a script associated to a trigger, which in the example is post-login. In the example below, multifactor is set to none. Note that you can disable it for the entire auth0 tenant by using the tenant settings; however, the example here is for a specific use case.

exports.onExecutePostLogin = async (event, api) {
    // Add some condition for specific use case
    api.multifactor.enable("none");
}