Magento 2 Two-Factor Authentication (2FA) improves security by requiring two-step authentication to access the Magento Admin UI from all devices. The latest release, Magento 2.4 enables two-factor authentication by default.
Hence, 2-factor authentication adds another layer of security for your e-commerce store but it’s too much when your store is in development.
In this article, I will show you how to Disable 2FA for your Magento 2 instance. However, it is not recommended to disable 2FA in Magento 2 production environment for security purposes.
Steps to disable Two-Factor Authentication:
- Open your command line and go to root of your Magento 2 instance
- Run command php bin/magento module:disable Magento_TwoFactorAuth
- Run command php bin/magento cache:flush