Skip to content

Commit

Permalink
Merge pull request #478 from sunbird-cb/kar-202-logout-fix
Browse files Browse the repository at this point in the history
Kar 202 logout fix
  • Loading branch information
vishnubansaltarento authored May 24, 2024
2 parents b206b2e + 4b07ebe commit 4687b96
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/app/services/init.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
NsInstanceConfig,
// NsUser,
UserPreferenceService,
AuthKeycloakService,
// AuthKeycloakService,
} from '@sunbird-cb/utils'
import { map } from 'rxjs/operators'
import { environment } from '../../environments/environment'
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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: [],
Expand Down

0 comments on commit 4687b96

Please sign in to comment.