Skip to content

fix(apps): remove invalid user-personalized Spotify scope#15

Merged
jezekra1 merged 1 commit intomainfrom
fix/spotify-invalid-user-personalized-scope
Apr 19, 2026
Merged

fix(apps): remove invalid user-personalized Spotify scope#15
jezekra1 merged 1 commit intomainfrom
fix/spotify-invalid-user-personalized-scope

Conversation

@jezekra1
Copy link
Copy Markdown

Summary

user-personalized is not a valid public Spotify Web API scope. Despite appearing in a scope-reference page summary, Spotify's /authorize endpoint rejects it with invalid_scope, which redirects back without a code — producing "Connection failed — Missing code or state parameter" for every Spotify (re)connection on v0.0.17.

Community confirmation: Spotify Community — Illegal scope.

Fix

Removes user-personalized from both defaultScopes and permissions[]. Remaining 11 read scopes cover every public Spotify Web API read:

user-read-email, user-read-private, user-library-read, playlist-read-private, playlist-read-collaborative, user-top-read, user-read-recently-played, user-follow-read, user-read-playback-state, user-read-currently-playing, user-read-playback-position.

Test plan

  • pnpm --filter @onecli/web lint — clean
  • pnpm --filter @onecli/web check-types — clean
  • Manual: reconnect Spotify — consent screen loads, callback succeeds with code/state, /me returns 200

user-personalized is not a public Spotify Web API scope — the
authorization endpoint rejects it with invalid_scope, breaking the
OAuth callback with "Missing code or state parameter" for every
reconnection attempt on v0.0.17.

The remaining read scopes (email, private, library, playlists,
top, recently-played, follow, playback-state, currently-playing,
playback-position) cover all documented Spotify Web API reads.

Signed-off-by: Radek Ježek <radek.jezek@ibm.com>
@jezekra1 jezekra1 merged commit dac8871 into main Apr 19, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants