Announcements
From 28th September 2026, Community private messages will no longer be available. If you have any private messages you'd like to keep, please save or copy them using these steps before this date. Thank you.

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