Secure Two-Factor Authentication API with Google Authenticator
This project is a simple and secure implementation of Time-based One-Time Password (TOTP) authentication using Google Authenticator. It shows how to generate QR codes, manage shared secrets, and validate OTP codes in a .NET Web API. It’s a helpful starter template for anyone who wants to add 2FA to their own applications.
Features
Generate and register a TOTP secret for each user
Create a scannable QR code for Google Authenticator
Validate 6-digit OTP codes
Built with .NET Web API
Clean and easy-to-extend structure
Use cases
Secure login flows
Learning TOTP and Google Auth integration
Adding 2FA to existing .NET applications