The auth documentation on the main page of the repo is a bit misleading.
It should mention that:
1) The chunk of code in the example for auth belongs in a hand-crafted plugin file
2) In the plugin file, it is "module.exports.auth_plain = WrapAuthPlain(..."
The auth documentation on the main page of the repo is a bit misleading. It should mention that: 1) The chunk of code in the example for auth belongs in a hand-crafted plugin file 2) In the plugin file, it is "module.exports.auth_plain = WrapAuthPlain(..."