[GH-ISSUE #827] Trying to get multiple account authorizations instead of just one #509

Closed
opened 2026-02-27 23:23:01 +03:00 by kerem · 1 comment
Owner

Originally created by @bjbuddyboy on GitHub (Jun 9, 2022).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/827

I'm trying to create a program for spotipy where anyone can log in. I can make it where only I can get an authorization but am struggling with trying to get it where when the program runs it asks for a new login for authorization.
Screen Shot 2022-06-08 at 9 16 43 PM
Here is the code I have so far for the Authorization. Not sure if it actually works. I just don't know how to be able to login to different spotify accounts with the correct authorization only know how to hard code in my account. Not sure where to go.

Originally created by @bjbuddyboy on GitHub (Jun 9, 2022). Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/827 I'm trying to create a program for spotipy where anyone can log in. I can make it where only I can get an authorization but am struggling with trying to get it where when the program runs it asks for a new login for authorization. <img width="826" alt="Screen Shot 2022-06-08 at 9 16 43 PM" src="https://user-images.githubusercontent.com/95095158/172756840-31c96805-c555-4b07-a5f1-28180dc932c0.png"> Here is the code I have so far for the Authorization. Not sure if it actually works. I just don't know how to be able to login to different spotify accounts with the correct authorization only know how to hard code in my account. Not sure where to go.
kerem 2026-02-27 23:23:01 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@git-eri commented on GitHub (Sep 10, 2022):

Take a look at the examples, especially app.py
That example helped me alot getting started to make a multi-user app with flask.

Note that FlaskSessionCacheHandler is currently not in the pip package, for that refer to issue#838

<!-- gh-comment-id:1242766405 --> @git-eri commented on GitHub (Sep 10, 2022): Take a look at the examples, especially [app.py](https://github.com/plamere/spotipy/blob/master/examples/app.py) That example helped me alot getting started to make a multi-user app with flask. Note that FlaskSessionCacheHandler is currently not in the pip package, for that refer to [issue#838](https://github.com/plamere/spotipy/issues/838#issuecomment-1180726732)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotipy#509
No description provided.