HTTP Interceptors
An interceptor sits on every HTTP call. Add an Authorization header. Log errors. Retry once. Provide it with withInterceptors or HTTP_INTERCEPTORS.
Board: clone the request, set Bearer token from auth, pass to next. If 401, navigate to login. Trap: intercepting and forgetting to call next.handle — the request never leaves.
Exam tip
Add token + 401 → login. Must call next.