mirror of
https://github.com/devgianlu/go-librespot.git
synced 2026-04-26 05:15:49 +03:00
[GH-ISSUE #167] How to use a custom Spotify ClientID? #104
Labels
No labels
bug
enhancement
pull-request
spotify-side
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/go-librespot#104
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 @vitorbaptista on GitHub (Jan 22, 2025).
Original GitHub issue: https://github.com/devgianlu/go-librespot/issues/167
First of all, thanks for the great piece of code!
There is a hardcoded Client ID in
github.com/devgianlu/go-librespot@b67163895b/client_id.go (L5). I'd like to use my own Client ID. I can change the go code and recompile it directly, but when I do so it fails with:FATA[0000] failed running with interactive auth error="failed obtaining client token: invalid status code from clienttoken: 400"My Spotify app is set with all APIs and the redirect URI is configured correctly:
My app is in development mode.
What am I missing?
@devgianlu commented on GitHub (Jan 22, 2025):
The client ID hardcoded there is a special one from Spotify. What you may want to do is authenticate via an access token made with your app.