auth0 / express-jwt

connect/express middleware that validates a JsonWebToken (JWT) and set the req.user with the attributes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

new Buffer() deprecated since v6

dev101 opened this issue · comments

Code sample of handling base64-encoded secret in README triggers
new Buffer()' was deprecated since v6. Use 'Buffer.alloc()' or 'Buffer.from()' (use 'https://www.npmjs.com/package/safe-buffer' for '<4.5.0') instead warning in my standardjs linter.

I suggest you follow the advice and update the docs.