diff options
Diffstat (limited to 'uploader/oauth2/client.py')
-rw-r--r-- | uploader/oauth2/client.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/uploader/oauth2/client.py b/uploader/oauth2/client.py index 6dde9cb..a3e4ba3 100644 --- a/uploader/oauth2/client.py +++ b/uploader/oauth2/client.py @@ -88,14 +88,14 @@ def oauth2_client(): """Update the token when refreshed.""" session.set_user_token(token) - def __json_auth__(client, method, uri, headers, body): + def __json_auth__(client, _method, uri, headers, body): return ( uri, {**headers, "Content-Type": "application/json"}, json.dumps({ **dict(url_decode(body)), - "client_id": oauth2_clientid(), - "client_secret": oauth2_clientsecret() + "client_id": client.client_id, + "client_secret": client.client_secret })) def __client__(token) -> OAuth2Session: |