Summary
Fix the Song of the Week (SoTW) "Save to Spotify" functionality — playlist creation/updating fails because the OAuth scopes granted during user sign-up are insufficient.
Background
- When a user tries to save a SoTW playlist to their Spotify account, the operation fails silently or errors out.
- The root cause appears to be that the client scopes requested during Spotify OAuth sign-up do not include the permissions needed to create and modify playlists.
- The Spotify Web API requires specific scopes (
playlist-modify-public, playlist-modify-private) for playlist write operations.
Scope
Backend (C# API)
- Review the Spotify OAuth configuration to identify which scopes are currently being requested.
- Add the necessary playlist-write scopes (
playlist-modify-public and/or playlist-modify-private) to the OAuth flow.
- Verify the playlist creation and update endpoints handle errors gracefully and return meaningful messages.
Frontend (React Native)
- Ensure the user is prompted to re-authorize if their existing token lacks the required scopes.
- Display appropriate error/success feedback when saving a playlist.
Spotify API Reference
Definition of Done
Summary
Fix the Song of the Week (SoTW) "Save to Spotify" functionality — playlist creation/updating fails because the OAuth scopes granted during user sign-up are insufficient.
Background
playlist-modify-public,playlist-modify-private) for playlist write operations.Scope
Backend (C# API)
playlist-modify-publicand/orplaylist-modify-private) to the OAuth flow.Frontend (React Native)
Spotify API Reference
Definition of Done
playlist-modify-publicand/orplaylist-modify-privatescopes.