diff --git a/backend/app/core/security.py b/backend/app/core/security.py index 50a997b..098fe34 100644 --- a/backend/app/core/security.py +++ b/backend/app/core/security.py @@ -25,7 +25,7 @@ def create_access_token(*, data: dict, expires_delta: timedelta = None): if expires_delta: expire = datetime.utcnow() + expires_delta else: - expire = datetime.utcnow() + timedelta(minutes=15) + expire = datetime.utcnow() + timedelta(minutes=2880) to_encode.update({"exp": expire}) encoded_jwt = jwt.encode(to_encode, SECRET_KEY, algorithm=ALGORITHM) return encoded_jwt