THERE IS A RACE CONDITION BETWEEN USE AND REPEATED REFRESH OF A TOKEN

This commit is contained in:
2021-09-03 22:07:52 +02:00
parent 657d85538e
commit 606ac6d81f
4 changed files with 1 additions and 24 deletions

View File

@ -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}`}