[GH-ISSUE #596] Move get_credentials function to the application #373

Closed
opened 2026-02-27 19:30:17 +03:00 by kerem · 0 comments
Owner

Originally created by @Johannesd3 on GitHub (Feb 9, 2021).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/596

I would like to suggest another breaking change before 0.2: removing fn get_credentials. Why? It does not provide any functionality directly concerning Spotify, but it's rather a very specialized function, written with a concrete application/daemon in mind.

Yes, spotifyd uses this function too, or better: they abuse it. Instead of prompting in the prompt callback they abort the application. Which shows that this function is too specialized for their usecase too.

So I would suggest moving it to the application. It's not hard to implement, so every dependency using this function could implement it's own more spezialized function. Do you agree?

Originally created by @Johannesd3 on GitHub (Feb 9, 2021). Original GitHub issue: https://github.com/librespot-org/librespot/issues/596 I would like to suggest another breaking change before 0.2: removing `fn get_credentials`. Why? It does not provide any functionality directly concerning Spotify, but it's rather a very specialized function, written with a concrete application/daemon in mind. Yes, spotifyd uses this function too, or better: they abuse it. Instead of prompting in the `prompt` callback they abort the application. Which shows that this function is too specialized for their usecase too. So I would suggest moving it to the application. It's not hard to implement, so every dependency using this function could implement it's own more spezialized function. Do you agree?
kerem closed this issue 2026-02-27 19:30:17 +03:00
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/librespot#373
No description provided.