angularjs – Authentication / Permissions with MEAN Stack

Question:

I'm studying the MEAN stack, I'm really enjoying it, and I'm developing simple applications, however, I couldn't find something that would really help me understand better about authentication and permissions using MEAN, and what my bank would look like. I would be grateful if someone could help me, a link to a source demo, a material that was not difficult to understand would help a lot. Thank you all in advance.

Answer:

Lucas, MEAN uses Mongo, Node and Angular. Furthermore, you can authenticate in several ways. With Angular you can apply an Interceptor and after validating the information on your server through a get request, if it returns 401 you can forward the user to an "Unauthorized" page.

The persistence paradigm in MongoDb is a little different from what we're used to in relational databases.

Maybe these two links will help you:
Passport Authentication in NodeJs
Js Angular interceptors

If you have questions just say it.

Scroll to Top