@@ -80,7 +80,7 @@ import {PropertiesService} from 'Repositories/properties/PropertiesService';
8080import { SearchRepository } from 'Repositories/search/SearchRepository' ;
8181import { SelfRepository } from 'Repositories/self/SelfRepository' ;
8282import { SelfService } from 'Repositories/self/SelfService' ;
83- import { StorageKey , StorageRepository , StorageService } from 'Repositories/storage' ;
83+ import { StorageRepository , StorageService } from 'Repositories/storage' ;
8484import { TeamRepository } from 'Repositories/team/TeamRepository' ;
8585import { TeamService } from 'Repositories/team/TeamService' ;
8686import { EventTrackingRepository } from 'Repositories/tracking/EventTrackingRepository' ;
@@ -91,7 +91,6 @@ import {DebugUtil} from 'Util/DebugUtil';
9191import { Environment } from 'Util/Environment' ;
9292import { t } from 'Util/LocalizerUtil' ;
9393import { getLogger , Logger } from 'Util/Logger' ;
94- import { loadValue , resetStoreValue } from 'Util/StorageUtil' ;
9594import { durationFrom , formatCoarseDuration , TIME_IN_MILLIS } from 'Util/TimeUtil' ;
9695import { AppInitializationStep , checkIndexedDb , InitializationEventLogger } from 'Util/util' ;
9796
@@ -376,7 +375,7 @@ export class App {
376375 * @param config
377376 * @param onProgress
378377 */
379- async initApp ( clientType : ClientType , onProgress : ( message ?: string ) => void ) : Promise < User | undefined > {
378+ async initApp ( clientType : ClientType , onProgress : ( message ?: string ) => void ) {
380379 // add body information
381380 const startTime = Date . now ( ) ;
382381 await updateApiVersion ( ) ;
@@ -407,19 +406,6 @@ export class App {
407406
408407 telemetry . timeStep ( AppInitTimingsStep . RECEIVED_ACCESS_TOKEN ) ;
409408
410- const showLoginAfterLogout = Boolean ( loadValue < boolean > ( StorageKey . AUTH . SHOW_LOGIN ) ) ;
411- resetStoreValue ( StorageKey . AUTH . SHOW_LOGIN ) ;
412-
413- if ( showLoginAfterLogout ) {
414- const hasAuthenticatedSession = this . apiClient . transport ?. http ?. hasValidAccessToken ?.( ) ?? false ;
415-
416- if ( ! hasAuthenticatedSession ) {
417- this . logger . info ( 'User flagged as logged out without an authenticated session. Redirecting to login.' ) ;
418- this . repository . lifeCycle . redirectToLogin ( SIGN_OUT_REASON . NOT_SIGNED_IN ) ;
419- return undefined ;
420- }
421- }
422-
423409 let selfUser : User ;
424410
425411 try {
0 commit comments