From 579ea17973950f77ede7f8bd28fea41ee4be97a6 Mon Sep 17 00:00:00 2001 From: Jun Nishimura Date: Sun, 20 Aug 2023 15:51:14 +0900 Subject: [PATCH] add scope to get device id (#51) --- auth/auth.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/auth/auth.go b/auth/auth.go index 80fb76e..c231bb5 100644 --- a/auth/auth.go +++ b/auth/auth.go @@ -41,7 +41,10 @@ func NewAuth(cfg *config.Config) *spotifyauth.Authenticator { spotifyauth.WithClientID(cfg.GetClientValue(config.SpotifyIDKey)), spotifyauth.WithClientSecret(cfg.GetClientValue(config.SpotifySecretKey)), spotifyauth.WithRedirectURL(redirectURI), - spotifyauth.WithScopes(spotifyauth.ScopeUserReadPrivate), + spotifyauth.WithScopes( + spotifyauth.ScopeUserReadPrivate, + spotifyauth.ScopeUserReadPlaybackState, + ), ) }