videoflix-frontend - v0.0.0
    Preparing search index...

    Function 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.

      Parameters

      • req: HttpRequest<unknown>

        The outgoing HTTP request.

      • next: HttpHandlerFn

        The next handler in the HTTP request chain.

      Returns Observable<HttpEvent<unknown>>

      The modified or original request observable.

      provideHttpClient(withInterceptors([authInterceptor]));