diff --git a/backend/app/core/security.py b/backend/app/core/security.py index 098fe34..6465002 100644 --- a/backend/app/core/security.py +++ b/backend/app/core/security.py @@ -9,7 +9,7 @@ pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto") SECRET_KEY = "alicorns" ALGORITHM = "HS256" -ACCESS_TOKEN_EXPIRE_MINUTES = 30 +ACCESS_TOKEN_EXPIRE_MINUTES = 2880 def get_password_hash(password: str) -> str: @@ -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=2880) + expire = datetime.utcnow() + timedelta(minutes=ACCESS_TOKEN_EXPIRE_MINUTES) to_encode.update({"exp": expire}) encoded_jwt = jwt.encode(to_encode, SECRET_KEY, algorithm=ALGORITHM) return encoded_jwt diff --git a/frontend/src/components/AppSelect.vue b/frontend/src/components/AppSelect.vue index 946558a..261a7e6 100644 --- a/frontend/src/components/AppSelect.vue +++ b/frontend/src/components/AppSelect.vue @@ -17,7 +17,7 @@ \ No newline at end of file + diff --git a/frontend/src/components/right/FieldInput.vue b/frontend/src/components/right/FieldInput.vue index 716310d..9be0622 100644 --- a/frontend/src/components/right/FieldInput.vue +++ b/frontend/src/components/right/FieldInput.vue @@ -12,16 +12,16 @@ - + - + - \ No newline at end of file