Skip to content

Commit 64015c3

Browse files
author
wrongu
committed
Not creating a new Oauth2Session in MendeleyAuthorizationCodeTokenRefresher
Fixes #10
1 parent 3794a10 commit 64015c3

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

mendeley/auth.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,4 @@ def __init__(self, authenticator):
104104
self.redirect_uri = authenticator.mendeley.redirect_uri
105105

106106
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)
107+
session.refresh_token(self.token_url, auth=self.auth)

0 commit comments

Comments
 (0)