Skip to content

Commit

Permalink
Use proper auth override
Browse files Browse the repository at this point in the history
  • Loading branch information
at-white committed Nov 25, 2024
1 parent ee6cd0e commit dbfeb5e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sdks/python/src/redactive/auth_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,7 @@ async def list_connections(self, access_token: str) -> ListConnectionsResponse:
:return: An object containing the user ID and current connections.
:rtype: UserConnections
"""
headers = {"Authorization": f"Bearer {access_token}"}
response = await self._client.get("/api/auth/connections", headers=headers)
response = await self._client.get("/api/auth/connections", auth=BearerAuth(access_token))

if response.status_code != http.HTTPStatus.OK:
raise httpx.RequestError(response.text)
Expand Down

0 comments on commit dbfeb5e

Please sign in to comment.