Generate and validate time-based OTP (one time password) for multi-factor authentication.
Time-based One-Time Password (TOTP) is a computer algorithm that generates a one-time password which uses the current time as a source of uniqueness. It is commonly used for two-factor authentication (2FA).