From 743adc43b9864c763b190ef8a36c76b1e6a5d87c Mon Sep 17 00:00:00 2001 From: vishnubansal Date: Fri, 24 May 2024 15:15:27 +0530 Subject: [PATCH] update for kar-202-logout-issue --- src/app/services/init.service.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/app/services/init.service.ts b/src/app/services/init.service.ts index 66aa1c5ae..780ae3f95 100644 --- a/src/app/services/init.service.ts +++ b/src/app/services/init.service.ts @@ -19,7 +19,7 @@ import { NsInstanceConfig, // NsUser, UserPreferenceService, - AuthKeycloakService, + // AuthKeycloakService, } from '@sunbird-cb/utils' import { map } from 'rxjs/operators' import { environment } from '../../environments/environment' @@ -53,7 +53,7 @@ export class InitService { constructor( private logger: LoggerService, private configSvc: ConfigurationsService, - private authSvc: AuthKeycloakService, + // private authSvc: AuthKeycloakService, private widgetResolverService: WidgetResolverService, private settingsSvc: BtnSettingsService, private userPreference: UserPreferenceService, @@ -331,7 +331,8 @@ export class InitService { localStorage.setItem('login', 'true') } else { - this.authSvc.force_logout() + // this.authSvc.force_logout() + await this.http.get('/apis/reset').toPromise() } const details = { group: [],