From 49b6b717c1137fccc56baa6833fee99fdc1267e6 Mon Sep 17 00:00:00 2001 From: Matt Gibson Date: Fri, 13 Aug 2021 10:18:49 -0400 Subject: [PATCH] Pass in apiKey login callback (#361) * Pass in apiKey login callback * Update jslib --- jslib | 2 +- src/bw.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/jslib b/jslib index c70c8ecc24..1f0127966e 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit c70c8ecc247cb92e1f867630031fd5cdf124bcd3 +Subproject commit 1f0127966e85aa29f9e50144de9b2a03b00de5d4 diff --git a/src/bw.ts b/src/bw.ts index b3c84110d8..436217f635 100644 --- a/src/bw.ts +++ b/src/bw.ts @@ -120,7 +120,8 @@ export class Main { this.apiService = new NodeApiService(this.tokenService, this.platformUtilsService, this.environmentService, async (expired: boolean) => await this.logout(), 'Bitwarden_CLI/' + this.platformUtilsService.getApplicationVersion() + - ' (' + this.platformUtilsService.getDeviceString().toUpperCase() + ')'); + ' (' + this.platformUtilsService.getDeviceString().toUpperCase() + ')', (clientId, clientSecret) => + this.authService.logInApiKey(clientId, clientSecret)); this.userService = new UserService(this.tokenService, this.storageService); this.containerService = new ContainerService(this.cryptoService); this.settingsService = new SettingsService(this.userService, this.storageService);