fix(utils/token.py): Code review fix

https://g.codrs.ru/Hackaton/Backend/pulls/2#issuecomment-24
This commit is contained in:
Kirill
2025-10-25 21:01:45 +03:00
parent 22da586aec
commit f93b94531c
+1 -1
View File
@@ -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