moscajs/mosca

password in authenticate function is a buffer

simonnilsson opened this issue · 0 comments

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.