Skip to content

Conversation

@onlinefella
Copy link

minor revision to allow new users to login with lofi desktop client. previous code used localhost addresses in the auth.ts file which are no longer compatible with Spotify's dev API requirements (OAuth2.0), this revision replaces those with 127.0.0.1 which is the officially supported address to route API calls.

One small edit that I suggest before merging the files: in line 20 I had to replace the AUTH_CLIENT_ID = 'insert client ID' with my own from my personal Spotify Dev account. This was just to enable testing on my machine once I compiled the program. It will continue to work just fine if you choose to leave this in the merge, but please note that the CLIENT_ID will no longer be making a call to your team's Spotify dev account. No clue what the implications are here.

current code fails to authenticate new users because of an update to OAuth2.0 security protocol. http://localhost: requests are no longer considered secure and spotify requires http://127.0.0.1: to be used instead.
@dvx dvx self-requested a review December 19, 2025 19:10
@dvx dvx self-assigned this Dec 19, 2025
@dvx dvx added the bug Something isn't working label Dec 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants