add event object

This commit is contained in:
Roland Schneider
2025-11-20 15:08:32 +01:00
parent d635ba0986
commit 635975207f
27 changed files with 1224 additions and 92 deletions

View File

@@ -48,7 +48,7 @@ export class JwtInterceptor implements HttpInterceptor {
// this.refreshTokenSubject.next(null);
this.refreshTokenSubject = new BehaviorSubject<any>(null);
console.info("Refreshing tokens");
return this.authService.refreshToken().pipe(
switchMap((token: any) => {
this.refreshTokenSubject.next(token.accessToken);
@@ -60,6 +60,7 @@ export class JwtInterceptor implements HttpInterceptor {
return throwError(() => err);
}),
finalize(() => {
console.info("refreshing done")
// When the refresh attempt completes, set isRefreshing to false
this.isRefreshing = false;
})