Creating Role Based Authentication with Passport in Ionic 2 – Part 1



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.

Read the full article...


Share on Google Plus

About www. codeandyou.com

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment
    Facebook Comment

0 comments :

Post a Comment