1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-23 11:56:00 +01: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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

2
jslib

@ -1 +1 @@
Subproject commit c70c8ecc247cb92e1f867630031fd5cdf124bcd3
Subproject commit 1f0127966e85aa29f9e50144de9b2a03b00de5d4

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