Route Guards and HTTP Interceptors
A route guard decides whether a page may open, and sends visitors who aren't signed in to the sign-in page and back again afterwards. An HTTP interceptor sees every request, so one adds the token to every call to your API, and signs the user out when the API answers 401.
Updated

- Category
- Angular
- Level
- Freelancer
- Tags
- angular, Interceptor (angular), Route Guard