Merge branch 'master' of https://home.hottis.de/gitlab/hv2/hv2-all-in-one
This commit is contained in:
@ -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}`}
|
||||||
|
@ -79,5 +79,4 @@ export class TokenService {
|
|||||||
this.messageService.add("Token removed from local storage")
|
this.messageService.add("Token removed from local storage")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user