We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7d6884 commit 6024840Copy full SHA for 6024840
stac_fastapi/core/stac_fastapi/core/core.py
@@ -280,7 +280,7 @@ async def item_collection(
280
bbox: Optional[BBox] = None,
281
datetime: Optional[DateTimeType] = None,
282
limit: int = 10,
283
- token: str = None,
+ token: Optional[str] = None,
284
**kwargs,
285
) -> stac_types.ItemCollection:
286
"""Read items from a specific collection in the database.
@@ -302,6 +302,8 @@ async def item_collection(
302
Exception: If any error occurs while reading the items from the database.
303
"""
304
request: Request = kwargs["request"]
305
+ token = request.query_params.get('token')
306
+
307
base_url = str(request.base_url)
308
309
collection = await self.get_collection(
0 commit comments