RFC 6238 — TOTP: Time-Based One-Time Password Algorithm by node

TOTP extends HOTP by using the current time, rather than a counter, as the moving factor. It is the algorithm behind the six-digit codes shown by authenticator apps, where a fresh code appears every thirty seconds.