Announcements

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