About 2FAuth
2FAuth is a self-hosted web application for managing two-factor authentication accounts and generating their security codes. It serves as a web-based alternative to one-time passcode apps such as Google Authenticator and is designed to work on both mobile and desktop screens.
Accounts can be organized into groups, added by scanning and decoding a QR code or by filling in an advanced form, and edited later, including imported ones. It generates TOTP, HOTP and Steam Guard codes. The author built it to avoid interfaces that show every code at once with stressful countdowns, to keep 2FA accounts in a standalone database that is easy to back up and restore, and to avoid reaching for a phone when working on a desktop.
Access requires a user account, and since version 4.0 multiple users are possible, with public registration, registration limited by email domain, SSO-only registration or no registration at all. 2FAuth is written in PHP, licensed under AGPL-3.0, localized in English and French, and offers a public demo.
Key features
- TOTP, HOTP and Steam Guard codes
- QR code scanning to add accounts
- Manual account entry form
- Groups for organizing accounts
- Multi-user support with SSO option
- Standalone database for easy backup
Good fit for
- →Replacing a phone-only authenticator app
- →Generating codes on a desktop
- →Backing up 2FA accounts
- Built with
- PHP
- Tags
- 2fa
- totp
- hotp
- authenticator
- two-factor-authentication
- self-hosted
- php
- otp
Open-source alternatives to 2FAuth
See all
Aegis Authenticator
Auth & Identity
A free, secure and open source app for Android to manage your 2-step verification tokens.
GPL-3.0vs Microsoft Authenticator★ 13k
2FAS Auth
Auth & Identity
Source code for 2FAS Auth Android app
GPL-3.0vs Microsoft Authenticator★ 1.5k
privacyIDEA
Auth & Identity
:closed_lock_with_key: multi factor authentication system (2FA, MFA, OTP, FIDO Server)
AGPL-3.0vs Duo Security★ 1.8k
Authelia
Auth & Identity
The Single Sign-On Multi-Factor portal for web apps. OpenID Certified™ and Post-Quantum Cr
Apache-2.0vs OneLogin★ 29k
AuthMeReloaded
Auth & Identity
The best authentication plugin for the Bukkit/Spigot API!
GPL-3.0★ 886
Keycloak
Auth & Identity
Open Source Identity and Access Management For Modern Applications and Services
Apache-2.0vs Auth0★ 37k
SaaS alternatives to 2FAuth
See all
Microsoft Authenticator
Auth & Identity
Free mobile app for multi-factor sign-in approvals, one-time codes and passkeys
SaaSGoogle Authenticator
Auth & Identity
Two-factor authentication app from Google that generates one-time codes
SaaS
Twilio Verify
Auth & Identity
API for one-time passcodes and verification over SMS, voice, email and WhatsApp
SaaS
FusionAuth
Auth & Identity
Customer identity platform for login, MFA and SSO, self-hosted or cloud
SaaS
Scalekit
Auth & Identity
Auth platform for AI agents and B2B apps with SSO, scoped tokens and connectors
SaaS
Amazon Cognito
Auth & Identity
AWS user pools and identity federation for app sign-up and sign-in
SaaS

