Learn how to Login securely with Angular. We will Login using JWT( JSON Web Token ) which is the standard method for SPA Authentications. We will not use the traditional "Bearer method" but instead we will login using HttpOnly cookies which is a more secure authentication.
How to implement Authentication and Authorization in Angular. By using AuthGuards we can restrict users to access the routes also we can configure it base on the Role of the user.