Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix user having to log in after token refresh #19

Merged
merged 2 commits into from
Aug 17, 2014

Conversation

mattduck
Copy link
Contributor

@mattduck mattduck commented Aug 4, 2014

Fix get_cached_token method failing to return refreshed tokens, meaning that users have to log in when the token expires. Full explanation in commit message: mattduck/spotipy@72d13dd.

Fix issue where the get_cached_token method returns None instead of the
cached token object, meaning that users have to login again when the
initial token expires. The problem has two aspects:

- The first time the user calls get_cached_token after token
  expiration, the token is refreshed but the "new_token_info" object is
  not returned.

- The second time the user calls get_cached_token after token
  expiration, the scope check fails, because the refresh_access_token
  method didn't include the "scope" key when it cached the new
  token_info results.
plamere added a commit that referenced this pull request Aug 17, 2014
Fix user having to log in after token refresh
@plamere plamere merged commit 05a459e into spotipy-dev:master Aug 17, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants