Angular Authentication: Role Based Authorization

Опубликовано: 29 Апрель 2025
на канале: Code Shots With Profanis
57,697
960

#Angular uses guards to protect routes. In this video we will use the CanActivate guard to protect routes from non-authorized users.

The authentication is applied using #jwt token and we will make sure to block users from visiting specific routes if they are not authorized.

✨ Official doc on CanActivate guard: https://angular.io/api/router/CanActi...
✨ Code: https://github.com/profanis/codeShots...