import pyotp import os def get_totp(): totp_key = os.getenv("TOTP_KEY") totp = pyotp.TOTP(totp_key) return totp.now()