dwyl / hapi-auth-jwt2

:lock: Secure Hapi.js authentication plugin using JSON Web Tokens (JWT) in Headers, URL or Cookies
ISC License
798 stars 126 forks source link

Switch to use Buffer.from #355

Closed giraffesyo closed 3 years ago

giraffesyo commented 3 years ago

Using Buffer in this way is deprecated, so I've simply changed it to use Buffer.from() which has the same interface.

https://nodejs.org/en/docs/guides/buffer-constructor-deprecation/

codecov[bot] commented 3 years ago

Codecov Report

Merging #355 (3e03ffa) into master (e30599c) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #355   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            2         2           
  Lines          134       134           
=========================================
  Hits           134       134           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update e30599c...3e03ffa. Read the comment docs.