Two-Factor Authentication (2FA) is an additional layer of security used to ensure that people trying to gain access to an online account are who they say they are. First, a user will enter their username and a password. Then, instead of immediately gaining access, they will be required to provide another piece of information. This second factor could be a code sent to their phone, a fingerprint, or a hardware token.