from __future__ import annotations from app.core.config import Settings def build_auth_headers(settings: Settings) -> dict[str, str]: headers: dict[str, str] = {} if settings.edge_access_token: headers["Authorization"] = f"Bearer {settings.edge_access_token}" return headers