By Josh Morony
There many ways we can authenticate users in Ionic 2 applications and most of them are quite simple to implement. We could use Ionic Auth, social logins (Facebook, Google, Twitter), Firebase, SuperLogin, your own custom authentication on your own server and many more. If all we need to do for authentication is to grant a user access to the application and assign them some identifier to keep track of their information, there’s not too much we need to worry about.
It gets a little more complicated when we need to restrict access to certain functions or data based on a user’s role. We might want to have different types of users – like normal users, moderators, and admins for example – that all have access to different things.