###Explanation This is a really simple example of how to use Express, Passport (local), Mongo (Mongoose) and Angular to achieve a single page application that honors authentication.
Please, if you have some improvements for this repo, whether code fixes or more resources, submit a pull request.
###Considerations
- You would absolutely want to encrypt password fields. Check out
bcrypt
for hashing passwords - Check out other resources like those below, to learn more.
- Tutorial that uses bcrypt for hashing
- passport-local-mongoose, could make your life easier
- You'd want to make sure you check if a user exists before trying to create another (your /auth/register endpoint would need to be more complete).
- Tutorial