THERE IS A RACE CONDITION BETWEEN USE AND REPEATED REFRESH OF A TOKEN
This commit is contained in:
@ -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}`}
|
||||
|
Reference in New Issue
Block a user