We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5c1be56 + 6db6de3 commit a4e1430Copy full SHA for a4e1430
examples/authenticate/pkce/pkce.go
@@ -11,6 +11,7 @@ import (
11
"fmt"
12
spotifyauth "github.com/zmb3/spotify/v2/auth"
13
"log"
14
+ "os"
15
"net/http"
16
17
"golang.org/x/oauth2"
@@ -45,6 +46,7 @@ func main() {
45
46
url := auth.AuthURL(state,
47
oauth2.SetAuthURLParam("code_challenge_method", "S256"),
48
oauth2.SetAuthURLParam("code_challenge", codeChallenge),
49
+ oauth2.SetAuthURLParam("client_id", os.Getenv("CLIENT_ID")),
50
)
51
fmt.Println("Please log in to Spotify by visiting the following page in your browser:", url)
52
0 commit comments