From 3c799bb2ec66f38b55220ab86f9e29a4a8793c29 Mon Sep 17 00:00:00 2001 From: urec56 Date: Sun, 11 Feb 2024 16:38:58 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=B2=D1=80=D0=B5=D0=BC=D1=8F=20=D0=B6=D0=B8=D0=B7=D0=BD=D0=B8?= =?UTF-8?q?=20=D0=BA=D1=83=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chat_test/app/users/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chat_test/app/users/auth.py b/chat_test/app/users/auth.py index 88c3abb..a613e28 100644 --- a/chat_test/app/users/auth.py +++ b/chat_test/app/users/auth.py @@ -30,7 +30,7 @@ def verify_password(plain_password: str, hashed_password: str) -> bool: # Функция создания JWT токена def create_access_token(data: dict) -> str: to_encode = data.copy() - expire = datetime.utcnow() + timedelta(minutes=30) + expire = datetime.utcnow() + timedelta(minutes=60) to_encode.update({"exp": expire}) encoded_jwt = jwt.encode( to_encode, settings.SECRET_KEY, settings.ALGORITHM