mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-27 00:25:54 +03:00
[GH-ISSUE #241] Two users, two tokens, same result sets #126
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#126
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 @beekgeek on GitHub (Dec 31, 2017).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/241
I've got Spotipy running on a localhost. I've authenticated two different users and have confirmed their tokens are unique. When I run the following code to get currently playing information, I get the same results in spite of having different Spotify sessions running (different devices) for each of the users.
Testing further, this looks like a "current user" definition issue. Using the Spotipy "current_user()" method, I get the same username regardless of the token returned. Assuming log in / log out is even the right solution in this case not sure how I would implement log in this environment (running everything from command line). Shouldn't the authentication token be the basis for the results returned?
playback.py:
@beekgeek commented on GitHub (Jan 1, 2018):
Scope issue? I had a few different test scripts for my app with different scopes. I've updated them all to be consistent and now the issue seems to be resolved.