Passport inspired authenticator for general authentication purpose for node.js