From 50a019946e27b5eecae1216d7544ba3fea6b0975 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 15 May 2018 23:40:40 -0400 Subject: [PATCH] logout async --- jslib | 2 +- src/bw.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/jslib b/jslib index 7112911cb8..799c90af17 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit 7112911cb89bcf9bf9b9de32cb05ec2d3f78e3fc +Subproject commit 799c90af1702c681874cb8fce8f8adcf1049d0c8 diff --git a/src/bw.ts b/src/bw.ts index ad31ab468c..c6e47d5b36 100644 --- a/src/bw.ts +++ b/src/bw.ts @@ -66,7 +66,7 @@ export class Main { this.tokenService = new TokenService(this.storageService); this.messagingService = new NoopMessagingService(); this.apiService = new NodeApiService(this.tokenService, this.platformUtilsService, - (expired: boolean) => { this.logout(); }); + async (expired: boolean) => await this.logout()); this.environmentService = new EnvironmentService(this.apiService, this.storageService); this.userService = new UserService(this.tokenService, this.storageService); this.containerService = new ContainerService(this.cryptoService, this.platformUtilsService); @@ -82,7 +82,7 @@ export class Main { () => { /* do nothing */ }); this.syncService = new SyncService(this.userService, this.apiService, this.settingsService, this.folderService, this.cipherService, this.cryptoService, this.collectionService, - this.storageService, this.messagingService, (expired: boolean) => { this.logout(); }); + this.storageService, this.messagingService, async (expired: boolean) => await this.logout()); this.passwordGenerationService = new PasswordGenerationService(this.cryptoService, this.storageService); this.totpService = new TotpService(this.storageService, this.cryptoFunctionService); this.authService = new AuthService(this.cryptoService, this.apiService, this.userService, this.tokenService,