logout works
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user