Skip to content

Commit 8ee7bb9

Browse files
authored
fix: remove wrong audience (copy paste error) (#26)
1 parent 1d2a3c4 commit 8ee7bb9

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/bssclient/client/oauth.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,7 @@ def __init__(self, base_url: URL, oauth_client_id: str, oauth_client_secret: str
7474
async def _get_new_token(self) -> str:
7575
"""get a new JWT token from the oauth server"""
7676
_logger.debug("Retrieving a new token")
77-
token, _ = await self._oauth2client.get_access_token(
78-
"code",
79-
grant_type="client_credentials",
80-
audience="https://transformer.bee",
81-
# without the audience, you'll get an HTTP 403
82-
)
77+
token, _ = await self._oauth2client.get_access_token("code", grant_type="client_credentials")
8378
return token
8479

8580
async def _get_oauth_token(self) -> str:

0 commit comments

Comments
 (0)