Daniel 2 лет назад
Родитель
Сommit
b75abfd924
1 измененных файлов: 0 добавлений и 1 удалений
  1. +0
    -1
      matsen-tool/src/app/_helpers/jwt.interceptor.ts

+ 0
- 1
matsen-tool/src/app/_helpers/jwt.interceptor.ts Просмотреть файл

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

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
const user = this.accountService.userValue;
const isLoggedIn = user && user.token;


Загрузка…
Отмена
Сохранить