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