diff --git a/src/backend/app/auth/osm.py b/src/backend/app/auth/osm.py index cb03b8290..8ba814252 100644 --- a/src/backend/app/auth/osm.py +++ b/src/backend/app/auth/osm.py @@ -120,7 +120,7 @@ def create_tokens(jwt_data: dict) -> tuple[str, str]: def refresh_access_token(payload: dict) -> str: """Generate a new access token.""" - payload["exp"] = int(time.time()) + 60 # Access token valid for 15 minutes + payload["exp"] = int(time.time()) + 3600 # Access token valid for 1 hour return jwt.encode( payload, diff --git a/src/backend/app/projects/project_schemas.py b/src/backend/app/projects/project_schemas.py index 1b9ea4388..ce11e3030 100644 --- a/src/backend/app/projects/project_schemas.py +++ b/src/backend/app/projects/project_schemas.py @@ -321,6 +321,7 @@ class ProjectBase(BaseModel): author: User project_info: ProjectInfo status: ProjectStatus + created: datetime # location_str: str xform_category: Optional[XLSFormType] = None hashtags: Optional[List[str]] = None