mirror of
https://github.com/bitwarden/browser
synced 2025-12-14 23:33:31 +00:00
shorter logout
This commit is contained in:
@@ -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);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user