From f93b94531cbde4531f893ed3fc21fd0b5611fccc Mon Sep 17 00:00:00 2001 From: Kirill Date: Sat, 25 Oct 2025 21:01:45 +0300 Subject: [PATCH] fix(utils/token.py): Code review fix https://g.codrs.ru/Hackaton/Backend/pulls/2#issuecomment-24 --- utils/token.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/token.py b/utils/token.py index 5a3468d..90a69a9 100644 --- a/utils/token.py +++ b/utils/token.py @@ -3,5 +3,5 @@ import os def generateKey(email, passwd): key = os.getenv('KEY') - encoded = jwt.encode({f"{email}": f"{passwd}"}, key, algorithm="HS256") + encoded = jwt.encode({email: passwd}, key, algorithm="HS256") return encoded