adding client info
This commit is contained in:
@@ -33,11 +33,13 @@ func main() {
|
|||||||
|
|
||||||
authState := os.Getenv("SPOTIFY_AUTH_STATE")
|
authState := os.Getenv("SPOTIFY_AUTH_STATE")
|
||||||
redirectURL := os.Getenv("SPOTIFY_REDIRECT_URI")
|
redirectURL := os.Getenv("SPOTIFY_REDIRECT_URI")
|
||||||
// clientID := os.Getenv("SPOTIFY_CLIENT_ID")
|
clientID := os.Getenv("SPOTIFY_CLIENT_ID")
|
||||||
// clientSecret := os.Getenv("SPOTIFY_CLIENT_SECRET")
|
clientSecret := os.Getenv("SPOTIFY_CLIENT_SECRET")
|
||||||
|
|
||||||
auth := spotifyauth.New(
|
auth := spotifyauth.New(
|
||||||
spotifyauth.WithRedirectURL(redirectURL),
|
spotifyauth.WithRedirectURL(redirectURL),
|
||||||
|
spotifyauth.WithClientID(clientID),
|
||||||
|
spotifyauth.WithClientSecret(clientSecret),
|
||||||
spotifyauth.WithScopes(
|
spotifyauth.WithScopes(
|
||||||
spotifyauth.ScopeUserReadPlaybackState,
|
spotifyauth.ScopeUserReadPlaybackState,
|
||||||
spotifyauth.ScopeUserReadCurrentlyPlaying,
|
spotifyauth.ScopeUserReadCurrentlyPlaying,
|
||||||
|
|||||||
Reference in New Issue
Block a user