google-api-nodejs-client icon indicating copy to clipboard operation
google-api-nodejs-client copied to clipboard

DeprecatedWarning for Buffer when using google Authentication

Open obadahalak opened this issue 2 years ago • 2 comments

hi, I try to Authenticate with google but I face the following error:

eprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. (Use node --trace-deprecation ... to show where the warning was created)

image

Note: everything doing well in localhost

obadahalak avatar Nov 14 '23 12:11 obadahalak

@obadahalak Can you post the full code and stack, if possible? (run Node.js with --trace-deprecation to show the stack)

It's unclear where exactly the authenticate function is coming from in your code. To the best of my knowledge, we don't have any usage of deprecated Buffer() in our code base, so having more information about your code would've been very helpful.

Thanks you!

alexander-fenster avatar Nov 15 '23 01:11 alexander-fenster

@alexander-fenster yes, this is my full code https://github.com/obadahalak/peopleAPi/blob/main/index.js

obadahalak avatar Nov 15 '23 11:11 obadahalak