1

i'm trying to figure out a best practice for building an authentication system, the simplest one (based on user_name and password).

i searched for best practices and found a few projects, although most of them are pretty old and many things are depreciated.

i would like to have some advises for best practices to have the simplest login\signup system using angular-express-mongodb.

omri_saadon
  • 10,193
  • 7
  • 33
  • 58

3 Answers3

4

Use the passport module https://www.npmjs.com/package/passport, it has many modules you can use including one that stores login information in MongoDB https://github.com/jaredhanson/passport-local https://github.com/jaredhanson/passport-local/tree/master/examples

unobf
  • 7,158
  • 1
  • 23
  • 36
2

Another option that seems quite cool is Satellizer, a terrible name, but seems to meet the requirement.

bwobbones
  • 2,398
  • 3
  • 23
  • 32