1
0
mirror of https://github.com/bitwarden/cli synced 2025-12-06 04:23:19 +00:00

Pass in apiKey login callback (#361)

* Pass in apiKey login callback

* Update jslib
This commit is contained in:
Matt Gibson
2021-08-13 10:18:49 -04:00
committed by GitHub
parent a1738c57dd
commit 49b6b717c1
2 changed files with 3 additions and 2 deletions

2
jslib

Submodule jslib updated: c70c8ecc24...1f0127966e

View File

@@ -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);