Fix cli user agent (#415)

* Fix cli user agent

* update jslib
This commit is contained in:
Matt Gibson 2021-11-23 15:13:29 -06:00 committed by GitHub
parent 62a3ea5699
commit 4345a093b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

2
jslib

@ -1 +1 @@
Subproject commit 386903f5a9ef42fed709813d40e550ba91c0ee40
Subproject commit e1c6e4973a2532b14e3187a79688e8b0a89e9d5c

View File

@ -123,7 +123,7 @@ export class Main {
this.environmentService = new EnvironmentService(this.storageService);
this.apiService = new NodeApiService(this.tokenService, this.platformUtilsService, this.environmentService,
async (expired: boolean) => await this.logout(),
'Bitwarden_CLI/' + this.platformUtilsService.getApplicationVersion() +
'Bitwarden_CLI/' + this.platformUtilsService.getApplicationVersionSync() +
' (' + this.platformUtilsService.getDeviceString().toUpperCase() + ')', (clientId, clientSecret) =>
this.authService.logInApiKey(clientId, clientSecret));
this.userService = new UserService(this.tokenService, this.storageService);