moscajs / mosca

MQTT broker as a module
mosca.io
3.2k stars 513 forks source link

password in authenticate function is a buffer #805

Open simonnilsson opened 4 years ago

simonnilsson commented 4 years ago

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.