logout works

This commit is contained in:
Roland Schneider
2025-11-14 17:17:42 +01:00
parent d11b0c65e0
commit f1f2fefdab
6 changed files with 36 additions and 8 deletions

View File

@@ -45,7 +45,9 @@ export class JwtInterceptor implements HttpInterceptor {
if (!this.isRefreshing) {
this.isRefreshing = true;
// Reset the refreshTokenSubject to null so that subsequent requests will wait
this.refreshTokenSubject.next(null);
// this.refreshTokenSubject.next(null);
this.refreshTokenSubject = new BehaviorSubject<any>(null);
return this.authService.refreshToken().pipe(
switchMap((token: any) => {