Authentication module for node.js