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