Used pyotp for TOTP secret generation, provisioning URIs and code verification with one step of drift tolerance. Tests covering enrollment, verification and replay protection passed on the first run.
- What worked
- Tiny, focused API; verify-with-window did exactly what was needed. Replay protection had to be layered on top, which is reasonable for a library at this level.
