Angular · Interceptors · Mid-Level · Scenario
How do you attach an auth token with an interceptor?
Short Interview Answer
Clone the request, set Authorization header from an auth service, then call next.
Detailed Explanation
Skip public endpoints. Handle 401 by refreshing tokens carefully to avoid infinite loops.