Mendeley / mendeley-python-sdk

Python SDK for the Mendeley API.
Apache License 2.0
119 stars 59 forks source link

Getting refresh_token from existing session in client credentials refresh #18

Open wrongu opened 7 years ago

wrongu commented 7 years ago

Fixes #10

I had the same issue with refreshing tokens described in #10. The trouble is that the Oauth2Session.refresh_token function looks for a refresh_token key in the session's existing token (see here).

wrongu commented 7 years ago

The tests fail for me for different reasons locally and on Travis.. and none of them are things that should be affected by the change.

Any ideas what I need to do to get the tests working?