--- description: This article explains how to enable and configure Two Factor Authentication in Aidbox --- # Two Factor Authentication Aidbox supports Two Factor Authentication (2FA) with TOTP (time-based one-time passwords). 2FA adds an extra layer of security by requiring users to provide a second form of verification in addition to their password. {% hint style="info" %} Two Factor Authentication is not supported for external OAuth 2.0 providers {% endhint %} ## How to enable 2FA for specific user {% stepper %} {% step %} ### Login Request `GET /auth/login`. User enters credentials and logs in. {% endstep %} {% step %} ### Enable 2FA Request `GET /auth/two-factor`. User receives a form with an "Enable" button. After clicking the button, they receive the OTPAuth URL encoded as a QR code. {% endstep %} {% step %} ### Setting up authenticator app Encoded OTPAuth URL (QR) has the following structure: ``` otpauth://totp/