diff --git a/src/devx/api_clients.py b/src/devx/api_clients.py index 5b595a9..5b27d7c 100644 --- a/src/devx/api_clients.py +++ b/src/devx/api_clients.py @@ -419,7 +419,7 @@ class VikunjaClient: def __init__(self, base_url: str, token: str) -> None: self._base_url = base_url.rstrip("/") self._session = requests.Session() - self._session.headers.update({"Authorization": f"Bearer {token}"}) + self._session.headers.update({"Authorization": token}) def _request(self, method: str, path: str, **kwargs: Any) -> requests.Response: url = f"{self._base_url}{path}" diff --git a/tests/unit/test_api_clients.py b/tests/unit/test_api_clients.py index 136b483..c2a5b6d 100644 --- a/tests/unit/test_api_clients.py +++ b/tests/unit/test_api_clients.py @@ -606,7 +606,7 @@ class TestVikunjaClient: def test_init_sets_headers(self) -> None: client = VikunjaClient("https://work.example.com", "tok") assert client._base_url == "https://work.example.com" - assert client._session.headers["Authorization"] == "Bearer tok" + assert client._session.headers["Authorization"] == "tok" def test_list_tasks(self) -> None: client = VikunjaClient("https://work.example.com", "tok")