We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3794a10 commit 64015c3Copy full SHA for 64015c3
1 file changed
mendeley/auth.py
@@ -104,7 +104,4 @@ def __init__(self, authenticator):
104
self.redirect_uri = authenticator.mendeley.redirect_uri
105
106
def refresh(self, session):
107
- oauth = OAuth2Session(client=self.client, redirect_uri=self.redirect_uri, scope=['all'])
108
- oauth.compliance_hook['access_token_response'] = [handle_text_response]
109
-
110
- session.token = oauth.refresh_token(self.token_url, auth=self.auth)
+ session.refresh_token(self.token_url, auth=self.auth)
0 commit comments