diff --git a/src/framework/auth/services/auth.service.ts b/src/framework/auth/services/auth.service.ts index 575e58f48e..065a3a9d6b 100644 --- a/src/framework/auth/services/auth.service.ts +++ b/src/framework/auth/services/auth.service.ts @@ -140,7 +140,7 @@ export class NbAuthService { .pipe( switchMap((result: NbAuthResult) => { if (result.isSuccess()) { - this.tokenService.clear() + return this.tokenService.clear() .pipe(map(() => result)); } return observableOf(result);