Authentication HTTP interceptor.
Automatically attaches a user's authentication token (Authorization: Token <token>) to all outgoing HTTP requests directed to the Videoflix backend API.
Authorization: Token <token>
Requests targeting other domains remain unmodified.
The outgoing HTTP request.
The next handler in the HTTP request chain.
The modified or original request observable.
provideHttpClient(withInterceptors([authInterceptor])); Copy
provideHttpClient(withInterceptors([authInterceptor]));
Authentication HTTP interceptor.
Automatically attaches a user's authentication token (
Authorization: Token <token>) to all outgoing HTTP requests directed to the Videoflix backend API.Requests targeting other domains remain unmodified.