Skip to content
This repository has been archived by the owner on Feb 11, 2020. It is now read-only.

password in authenticate function is a buffer #805

Open
simonnilsson opened this issue Nov 18, 2019 · 0 comments
Open

password in authenticate function is a buffer #805

simonnilsson opened this issue Nov 18, 2019 · 0 comments

Comments

@simonnilsson
Copy link

According to the documentation the password passed to authenticate is supposed to be a string but it is actually a Buffer.

http://www.mosca.io/docs/lib/server.js.html#authenticate

I suggest either updating the documentation or casting it to a string before passing it to the authenticate function.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant