cleanup and slight refactor

This commit is contained in:
2024-06-13 17:45:12 +00:00
parent 66193dc27f
commit c5e5dca000
5 changed files with 105 additions and 86 deletions

View File

@@ -1,7 +1,7 @@
import pyotp
import os
def getTOTP():
def get_totp():
totp_key = os.getenv("TOTP_KEY")
totp = pyotp.TOTP(totp_key)
return totp.now()