Announcements

Help Wizard

Step 1

NEXT STEP

Found a typo in the docs

Found a typo in the docs


'Authorization': 'Basic ' + (new Buffer.fromn(client_id + ':' + client_secret).toString('base64'))
Should be =>
'Authorization': 'Basic ' + (new Buffer.from(client_id + ':' + client_secret).toString('base64'))

fromn to from

Reply
3 Replies

At which page?

XimzendSpotify Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

Great catch @ploouf - thanks for taking the time to report this. We have rolled out a correction ๐Ÿ™‚

Hi @spotifyjosh,

 

At: https://developer.spotify.com/documentation/web-api/tutorials/client-credentials-flow

 

Should be just `Buffer.from` not `new Buffer.from`

 

TIA (apologies for the revive, didn't correctly read the post ๐Ÿ˜…)

Suggested posts

Let's introduce ourselves!

Hey there you, ย  Yeah, you!ย 😁 ย  Welcome - we're glad you joined the Spotify Community! ย  While you here, let's have a fun game and getโ€ฆ

ModeratorStaff / Moderator/ 4 years ago  in Social & Random