Kaynağa Gözat

minor

master
Daniel 2 yıl önce
ebeveyn
işleme
b75abfd924
1 değiştirilmiş dosya ile 0 ekleme ve 1 silme
  1. +0
    -1
      matsen-tool/src/app/_helpers/jwt.interceptor.ts

+ 0
- 1
matsen-tool/src/app/_helpers/jwt.interceptor.ts Dosyayı Görüntüle

@@ -10,7 +10,6 @@ export class JwtInterceptor implements HttpInterceptor {
constructor(private accountService: AccountService) { } constructor(private accountService: AccountService) { }


intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> { intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> {
console.log('intercept');
// add auth header with jwt if user is logged in and request is to the api url // add auth header with jwt if user is logged in and request is to the api url
const user = this.accountService.userValue; const user = this.accountService.userValue;
const isLoggedIn = user && user.token; const isLoggedIn = user && user.token;


Yükleniyor…
İptal
Kaydet