Skip to content

Commit 01a625e

Browse files
spread config to viewer client
1 parent 9d3bf23 commit 01a625e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/posit/connect/external/connect_api.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,5 +76,8 @@ def get_client(self) -> Client:
7676
user_session_token=self._user_session_token,
7777
requested_token_type=API_KEY_TOKEN_TYPE,
7878
)
79-
80-
return Client(url=self._url, api_key=credentials.get("access_token"))
79+
config = {
80+
"url": self._url,
81+
"api_key": credentials.get("access_token"),
82+
}
83+
return Client(**config)

0 commit comments

Comments
 (0)