diff --git a/internal/backends/spotify/spotify.go b/internal/backends/spotify/spotify.go index 85b40dd..e2fe84f 100644 --- a/internal/backends/spotify/spotify.go +++ b/internal/backends/spotify/spotify.go @@ -62,19 +62,7 @@ func (b *SpotifyApiBackend) InitConfig(config *config.ServiceConfig) error { } func (b *SpotifyApiBackend) OAuth2Strategy(redirectURL *url.URL) auth.OAuth2Strategy { - conf := oauth2.Config{ - ClientID: b.clientID, - ClientSecret: b.clientSecret, - Scopes: []string{ - "user-read-currently-playing", - "user-read-recently-played", - "user-library-read", - "user-library-modify", - }, - RedirectURL: redirectURL.String(), - Endpoint: spotify.Endpoint, - } - + conf := b.OAuth2Config(redirectURL) return auth.NewStandardStrategy(conf) }