Skip to content

Commit 9aa2cfe

Browse files
author
wrongu
committed
Passing refresh_token from existing session to refresh call.
Fixes #10
1 parent 3794a10 commit 9aa2cfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mendeley/auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,4 @@ def refresh(self, session):
107107
oauth = OAuth2Session(client=self.client, redirect_uri=self.redirect_uri, scope=['all'])
108108
oauth.compliance_hook['access_token_response'] = [handle_text_response]
109109

110-
session.token = oauth.refresh_token(self.token_url, auth=self.auth)
110+
session.token = oauth.refresh_token(self.token_url, auth=self.auth, refresh_token=session.token.get('refresh_token', None))

0 commit comments

Comments
 (0)