1
0
mirror of https://github.com/bitwarden/cli synced 2025-12-16 08:13:21 +00:00

Direct download for send (#243)

* Remove Get file capability

This needs to be removed because the SendFileResponse no longer contains
a url to download the file from. Instead, a GetDownloadLink method
must be used. That method increments access count, which is not
desirable for the owner of the Send. The cleanest approach is to remove
the capability, which also matches Web client's behavior

* jslib updates

* Use GetDownloadData method to receive download Url

* Update jslib
This commit is contained in:
Matt Gibson
2021-03-02 10:05:20 -06:00
committed by GitHub
parent e77e1c94e8
commit fcd0c529ca
7 changed files with 15 additions and 22 deletions

View File

@@ -153,7 +153,7 @@ export class Program extends BaseProgram {
await this.exitIfNotAuthed();
const command = new LogoutCommand(this.main.authService, this.main.i18nService,
async () => await this.main.logout());
const response = await command.run(cmd);
const response = await command.run();
this.processResponse(response);
});