mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-27 00:25:54 +03:00
[GH-ISSUE #304] Refreshing tokens doesn't work #173
Labels
No labels
api-bug
bug
dependencies
documentation
duplicate
enhancement
external-ide
headless-mode
implicit-grant-flow
invalid
missing-endpoint
pr-welcome
private-api
pull-request
question
spotipy3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotipy#173
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @stavlocker on GitHub (Jun 26, 2018).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/304
Hello. I have no idea what's going on.
I've waited an hour for my token to expire, then enabled
pdb. I hope this explains my problem:Why does the program say my token hasn't expired (When I refresh it with no issues whatsoever) when even the token itself shows that I still have more time, but Spotify says my token expired and won't let me do any requests?
@stephanebruckert commented on GitHub (Jan 13, 2020):
What you get from
sp_oauth.get_cached_token()is a dictionary which when compared with an integer will always beFalse.Instead you want to get
token_info['access_token']and use it as your new token.Let me know if that helps, otherwise feel free to reopen