Bläddra i källkod

Add more scopes to Spotify

Toni Fadjukoff 6 år sedan
förälder
incheckning
1eac2d740c
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      bot.go

+ 1 - 1
bot.go Visa fil

@@ -39,7 +39,7 @@ type Credentials struct {
39 39
 }
40 40
 
41 41
 func (app *App) CreateSpotifyAuthenticator() *spotify.Authenticator {
42
-	auth := spotify.NewAuthenticator(app.credentials.SpotifyCallback, spotify.ScopePlaylistModifyPublic)
42
+	auth := spotify.NewAuthenticator(app.credentials.SpotifyCallback, spotify.ScopeUserReadPrivate, spotify.ScopePlaylistModifyPrivate, spotify.ScopePlaylistModifyPublic)
43 43
 	auth.SetAuthInfo(app.credentials.SpotifyClientID, app.credentials.SpotifyClientSecret)
44 44
 	return &auth
45 45
 }