JSON api based authentication:   http://www.sitepoint.com/using-json-web-tokens-node-js/  Easy auth with passport:  Keep in mind that this is a solution for use with express 3 that has not been updated to express 4 yet. All of the middle is going to need to be replaced if you want to use this code.  http://scotch.io/tutorials/javascript/easy-node-authentication-setup-and-local (Links to an external site.)