29.07.2015 - install passport npm; configure local login strategy; install encrypt module to encrypt //encrypt service //here are examples from bcrypt page bcrypt.hash("bacon", null, null, Here you can find good example of Token Authentication: https://scotch.io/tutorials/authenticate-a-node-js-api-with-json-web-tokens..