From 17494cc779fb887cbe32f3c9a815816ec480c9a4 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 16 Feb 2018 15:09:35 -0500 Subject: [PATCH] logout callbacks implemented --- src/app/services/services.module.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/services/services.module.ts b/src/app/services/services.module.ts index 3c8f4e22..484932c2 100644 --- a/src/app/services/services.module.ts +++ b/src/app/services/services.module.ts @@ -82,7 +82,7 @@ const cryptoService = new CryptoService(storageService, secureStorageService); const tokenService = new TokenService(storageService); const appIdService = new AppIdService(storageService); const apiService = new ApiService(tokenService, platformUtilsService, - (expired: boolean) => { /* log out */ }); + (expired: boolean) => messagingService.send('logout', { expired: expired })); const environmentService = new EnvironmentService(apiService, storageService); const userService = new UserService(tokenService, storageService); const settingsService = new SettingsService(userService, storageService); @@ -95,7 +95,7 @@ const lockService = new LockService(cipherService, folderService, collectionServ cryptoService, platformUtilsService, storageService, messagingService); const syncService = new SyncService(userService, apiService, settingsService, folderService, cipherService, cryptoService, collectionService, - storageService, messagingService, (expired: boolean) => { /* log out */ }); + storageService, messagingService, (expired: boolean) => messagingService.send('logout', { expired: expired })); const passwordGenerationService = new PasswordGenerationService(cryptoService, storageService); const totpService = new TotpService(storageService); const containerService = new ContainerService(cryptoService, platformUtilsService);