Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

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

Type a product name