Merge branch 'master' of https://home.hottis.de/gitlab/hv2/hv2-all-in-one
This commit is contained in:
commit
9478ad27c6
@ -21,7 +21,7 @@ export class AuthHandlerInterceptor implements HttpInterceptor {
|
||||
if (request.url.includes(serviceBaseUrl) && token) {
|
||||
this.messageService.add("start refresh of tokens")
|
||||
this.tokenService.refresh()
|
||||
|
||||
|
||||
this.messageService.add("api request intercepted")
|
||||
const clone = request.clone({
|
||||
setHeaders: { Authorization: `Bearer ${token}`}
|
||||
|
@ -79,5 +79,4 @@ export class TokenService {
|
||||
this.messageService.add("Token removed from local storage")
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user