Buffer object to initialize a buffer is deprecated in NodeJS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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')
Labels:
- Labels:
-
Possible workaround
-
Update required
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page