mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-05 16:22:11 +00:00
16 lines
437 B
TypeScript
16 lines
437 B
TypeScript
|
|
import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
|
||
|
|
import { Injectable } from '@angular/core';
|
||
|
|
import { Observable } from 'rxjs';
|
||
|
|
|
||
|
|
@Injectable({
|
||
|
|
providedIn: 'root',
|
||
|
|
})
|
||
|
|
export class AuthInterceptorService implements HttpInterceptor {
|
||
|
|
|
||
|
|
constructor() { }
|
||
|
|
|
||
|
|
public intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> {
|
||
|
|
return next.handle(req);
|
||
|
|
}
|
||
|
|
}
|