Skip to content

Commit

Permalink
update token scopes
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee Jun Kit committed Oct 8, 2021
1 parent 379c88d commit 67ac070
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions PlayerCore/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,7 @@ mod handlers {
pub async fn get_token(spotify: Arc<Mutex<Spotify>>) -> Result<impl Reply, Infallible> {
let session = spotify.lock().unwrap().get_session().clone();
let client_id = "d420a117a32841c2b3474932e49fb54b";
//let scopes = "user-read-private,playlist-read-private,playlist-read-collaborative,playlist-modify-public,playlist-modify-private,user-follow-modify,user-follow-read,user-library-read,user-library-modify,user-top-read,user-read-recently-played";
let scopes = ["ugc-image-upload", "playlist-read-collaborative", "playlist-modify-private", "playlist-modify-public", "playlist-read-private", "user-read-playback-position", "user-read-recently-played", "user-top-read", "user-modify-playback-state", "user-read-currently-playing", "user-read-playback-state", "user-read-private", "user-read-email", "user-library-modify", "user-library-read", "user-follow-modify", "user-follow-read", "streaming", "app-remote-control"].join(",");
let scopes = "ugc-image-upload,playlist-read-collaborative,playlist-modify-private,playlist-modify-public,playlist-read-private,user-read-playback-position,user-read-recently-played,user-top-read,user-modify-playback-state,user-read-currently-playing,user-read-playback-state,user-read-private,user-read-email,user-library-modify,user-library-read,user-follow-modify,user-follow-read,streaming,app-remote-control";
let token = keymaster::get_token(&session, client_id, &scopes).await.unwrap();
let proxy = TokenProxy {
access_token: token.access_token,
Expand Down

0 comments on commit 67ac070

Please sign in to comment.