The server component of apps.auth using Node.js and MongoDB