This commit is contained in:
2021-09-06 14:04:17 +02:00
2 changed files with 1 additions and 2 deletions

View File

@ -21,7 +21,7 @@ export class AuthHandlerInterceptor implements HttpInterceptor {
if (request.url.includes(serviceBaseUrl) && token) { if (request.url.includes(serviceBaseUrl) && token) {
this.messageService.add("start refresh of tokens") this.messageService.add("start refresh of tokens")
this.tokenService.refresh() this.tokenService.refresh()
this.messageService.add("api request intercepted") this.messageService.add("api request intercepted")
const clone = request.clone({ const clone = request.clone({
setHeaders: { Authorization: `Bearer ${token}`} setHeaders: { Authorization: `Bearer ${token}`}

View File

@ -79,5 +79,4 @@ export class TokenService {
this.messageService.add("Token removed from local storage") this.messageService.add("Token removed from local storage")
} }
} }
} }