Skip to content
Myr

Removed Buffer call with 'binary' encoding option in auth example.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

According to the Node.js documentation for Buffer objects regarding the 'binary' encoding option: "This encoding method is deprecated and should be avoided in favor of Buffer objects where possible. This encoding will be removed in future versions of Node." Simply calling toString() with a 'base64' argument on the hash seems to accomplish the same thing; this makes the code compatible with current documentation as well as being a bit easier to follow.

authored by Rick Yakubowski · committed by Rick Yakubowski · parent f47c0d9 · Browse files · 1 file+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:examples/auth/pass.js+3 added-3 removed