Angular is the core of Ionic and most of the work with respect to authentication and authorization will be handled in code. There are mainly two ways of implementing server side authentication for frontend applications. You look at the Ionic app as an Angular frontend application. All of what we will cover can be treated as common and can be used on the Web as well as Ionic-based hybrid applications.
Mainly there are two ways that we can usually handle authentication:
- Token-based
- Cookie-based