I ask this question, because I have already made some application with authentication with these technologies: MongoDb, Angular, NodeJs and Express. The thing is that I've been researching Passport, but I can't fully implement it in nodeJs, much less do I have an idea of what it will be like to insert it with angular later. So that is my question. How is it implemented? Is there a place where I can get some information, apart from the internet documentations? Thanks in advance
Here is an example of how I have implemented it several times, I hope it will help you, but the documentation on the internet is very good ;)
./local.js
Here I implement local authentication, in a separate file in case you want to use other strategies, export a getStrategy which is the one you use:
passport.js
Here I load the strategies and export a function that it uses to load passport
app.js
This is the main module where you create the express router and add the middlewares to it