Magento 2: How to disable the Admin Two Factor Auth (2FA) Feature

September 17th, 2020

Warning: This post is 3 years old. Some of this information may be out of date.

Today I installed Magento 2 for the first time in about a year. Once installed I navigated to the admin area and was presented with a two factor auth warning. Here's what I got:

Magento admin's 2FA screen

Luckily there's a way to disable this from the terminal using the bin/magento tool:

bin/magento module:disable Magento_TwoFactorAuth
bin/magento cache:flush 

Once done you should reload your admin screen and you can login as normal.

Note: Its probably a good idea to leave 2FA enabled on production sites.