Skip to content

Commit

Permalink
fixed token refresh for oauth2
Browse files Browse the repository at this point in the history
  • Loading branch information
opaduchak committed Jan 9, 2025
1 parent 6865a6b commit 6e97e8d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions addon_service/common/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,7 @@ async def _do_send(self, request: HttpRequestInfo):
async with self._try_send(request) as _response:
yield _response
except exceptions.ExpiredAccessToken:
await _PrivateNetworkInfo.get(
self
).account.refresh_oauth_access_token__async()
await _PrivateNetworkInfo.get(self).account.refresh_oauth2_access_token()
# if this one fails, don't try refreshing again
async with self._try_send(request) as _response:
yield _response
Expand Down

0 comments on commit 6e97e8d

Please sign in to comment.