diff --git a/api/helper_functions.py b/api/helper_functions.py index 3d59264..7f25059 100644 --- a/api/helper_functions.py +++ b/api/helper_functions.py @@ -45,7 +45,7 @@ def get_email_from_token_data(): token = token.split(":")[0] try: - if jwt.decode(token, os.getenv('SECRET_KEY'), algorithms=["HS256"])['email'] == os.getenv("BOT_USER"): + if jwt.decode(token, os.getenv('SECRET_KEY'), algorithms=["HS256"])['email'] == os.getenv("BOT_EMAIL"): return email else: return None