X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fapp%2FAppComponent.ts;h=1c5886a953923bc7c8ca2d62a6dcd6e25be50aa9;hb=refs%2Fchanges%2F55%2F13955%2F1;hp=04ad8d8122a0949c5afc40976cf65dda7168c0c0;hpb=3b4814aa2d3dec621dadb52f058ba95a3dc3a86a;p=osm%2FNG-UI.git diff --git a/src/app/AppComponent.ts b/src/app/AppComponent.ts index 04ad8d8..1c5886a 100644 --- a/src/app/AppComponent.ts +++ b/src/app/AppComponent.ts @@ -19,13 +19,13 @@ /** * @file App Components */ +import { isNullOrUndefined } from 'util'; import { Component, HostListener, Injector } from '@angular/core'; import { NgbModal } from '@ng-bootstrap/ng-bootstrap'; import { DEFAULT_INTERRUPTSOURCES, Idle } from '@ng-idle/core'; import { AuthenticationService } from 'AuthenticationService'; import { DeviceCheckService } from 'DeviceCheckService'; import { SharedService } from 'SharedService'; -import { isNullOrUndefined } from 'util'; /** * Creating component @@ -86,7 +86,7 @@ export class AppComponent { public idleTimeOut(): void { this.idle.onTimeout.subscribe(() => { this.idle.stop(); - if (localStorage.getItem('id_token') !== null) { + if (sessionStorage.getItem('id_token') !== null) { this.authService.logout(); } });