Skip to content

Commit

Permalink
add scope to get device id (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
JunNishimura committed Aug 20, 2023
1 parent df8ec35 commit 579ea17
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
)
}

Expand Down

0 comments on commit 579ea17

Please sign in to comment.