By Josh Morony
In this tutorial series, we are walking through how to create a role-based authentication system with Ionic 2 using Passport. In short, we want to create a way to provide different users with different permissions, or roles, in the application. One example of this would be a chat room that allows all users to post messages, but only some users (moderators) are allowed to kick other users out.
The example we are building is a shared todo application, where the users can have one of three different roles: