mirror of
https://github.com/bitwarden/browser.git
synced 2024-10-30 08:10:34 +01:00
shorter logout
This commit is contained in:
parent
50a019946e
commit
86700fe7ef
@ -61,9 +61,7 @@ export class Program {
|
|||||||
.description('Log out of the current Bitwarden user account.')
|
.description('Log out of the current Bitwarden user account.')
|
||||||
.action(async (cmd) => {
|
.action(async (cmd) => {
|
||||||
await this.exitIfNotAuthed();
|
await this.exitIfNotAuthed();
|
||||||
const command = new LogoutCommand(this.main.authService, async () => {
|
const command = new LogoutCommand(this.main.authService, async () => await this.main.logout());
|
||||||
await this.main.logout();
|
|
||||||
});
|
|
||||||
const response = await command.run(cmd);
|
const response = await command.run(cmd);
|
||||||
this.processResponse(response, cmd);
|
this.processResponse(response, cmd);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user