Plan
Premium
Country
South Africa
Device
(Lenovo Laptop)
Operating System
(Windows 10)
My Question or Issue
I'm currently using the WEB API and logging in with my current account and it provides me with an access token. I use that token to make general calls to the api endpoints and that works all fine and well, but now I want to use the playback SDK and for some reason it returns a 403 error saying my token is out of scope when I try to connect to the player, but if I hard code in an authentication token from the SDK quickstart from here Quick Start | Spotify for Developers its works just fine
Is there a way to receive a token that autheticates both the API calls and the SDK connection?
Will mark this as solution since its correct, but also wanna post something weird about the auth url structure. Most of the guides I found had a specific structure and called the auth endpoints like so:
https://accounts.spotify.com/en/authorize?client_id=<myclientid>&redirect_uri=http://localhost:3000&scope=streaming%20user-modify-playback-state%20user-read-playback-state%20user-read-currently-playing&response_type=token&show_dialog=true
But this never worked, so I checked the free auth token from the docs Quick Start | Spotify for Developers and that worked fine and it looked like this:
https://accounts.spotify.com/en/authorize?response_type=token&client_id=<myclientid>&redirect_uri=https%3A%2F%2Fdeveloper.spotify.com%2Fdocumentation%2Fweb-playback-sdk%2Fquick-start%2F&scope=streaming+user-read-email+user-modify-playback-state+user-read-private&show_dialog=true
So after adding the scopes needed I also restructured my url (replaced redirect to my local) and it seems to work in that format, was it an update or something?
Will mark this as solution since its correct, but also wanna post something weird about the auth url structure. Most of the guides I found had a specific structure and called the auth endpoints like so:
https://accounts.spotify.com/en/authorize?client_id=<myclientid>&redirect_uri=http://localhost:3000&scope=streaming%20user-modify-playback-state%20user-read-playback-state%20user-read-currently-playing&response_type=token&show_dialog=true
But this never worked, so I checked the free auth token from the docs Quick Start | Spotify for Developers and that worked fine and it looked like this:
https://accounts.spotify.com/en/authorize?response_type=token&client_id=<myclientid>&redirect_uri=https%3A%2F%2Fdeveloper.spotify.com%2Fdocumentation%2Fweb-playback-sdk%2Fquick-start%2F&scope=streaming+user-read-email+user-modify-playback-state+user-read-private&show_dialog=true
So after adding the scopes needed I also restructured my url (replaced redirect to my local) and it seems to work in that format, was it an update or something?