Skip to content

add comments to explain WithClientID behaviour in the pkce auth example#297

Open
dubeyKartikay wants to merge 1 commit intozmb3:masterfrom
dubeyKartikay:master
Open

add comments to explain WithClientID behaviour in the pkce auth example#297
dubeyKartikay wants to merge 1 commit intozmb3:masterfrom
dubeyKartikay:master

Conversation

@dubeyKartikay
Copy link
Copy Markdown

i was building an app using this, and ran into an error while

2026/03/19 17:15:13 oauth2: cannot fetch token: 400 Bad Request
Response: {"error":"invalid_client"}

Just by looking at the example i thought i only had to set the client id here:

	oauth2.SetAuthURLParam("client_id"

but we need to set it using WithClientID during spotifyauth.New

added a comment to tell this to people coming after me

@dubeyKartikay dubeyKartikay changed the title add comments to explain WithClientID behaviour add comments to explain WithClientID behaviour in the pkce auth example Mar 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant