In this post, we explore the implementation of two-factor authentication (2FA) using TOTP in Go web applications. We start by understanding the concept of TOTP, the flow of a 2FA, and how to integrate it step by step into an existing app.