Announcements
The Spotify Community is in read-only mode while we move to a new platform. We expect to be back up and running October 6th. During this time you can read existing content but take no other actions. If you still need help, visit our Support Site or contact us.

Help Wizard

Step 1

NEXT STEP

Buffer object to initialize a buffer is deprecated in NodeJS

Buffer object to initialize a buffer is deprecated in NodeJS

Country

US

My Issue

new Buffer('clientId' + ':' + 'clientSecret').toString('base64')

Buffer object needs statically allocated array to store buffer for a long time.

I'm not sure why the documentation still has this as an example for the authorization code flow

 

Use the updated .from or .alloc method for buffer objects

Buffer.from('clientId'+':'+'clientSecret').toString('base64')

 

 

spotifyDocumentationDeprecated.PNG
Reply
0 Replies

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/ 5 years ago  in Social & Random