If you are going to develop a multi platform mobile application and you googled a bit probably you have met Ionic. Ionic is a complete framework based on AngularJS and Cordova to develop mobile application with a great interface and an excellent support for all the Cordova plugin like Camera and Social sharing.
One of the most common feature of every web application is the authentication capabilities. Grabbing information of the user give you the possibilities of personalize content and restrict certain operation only to trusted peoples. Meteor as always make the authentication process very easy to accomplish. One of the most used module is the Accounts one.
In the first part of this tutorial we have installed all the necessary module to make a good authentication workflow with AngularJS and also created the view for that purpose. In this second part we will see how to create the REST API on the Express application to serve the authentication application.
Like any other web application your MEAN project need an authentication system to protect sections. User must register to visit some page or use some feature. For the Express framework the best solution you can take is to use a module called PassportJS. Passport can be use to authenticate users with more then 140 strategies like local storage, facebook, google or twitter.