mirror of
https://github.com/bitwarden/cli
synced 2025-12-06 04:23:19 +00:00
Fix always logging out instead of lock (#444)
This commit is contained in:
@@ -194,7 +194,7 @@ export class Program extends BaseProgram {
|
||||
.action(async (cmd) => {
|
||||
await this.exitIfNotAuthed();
|
||||
|
||||
if (this.main.keyConnectorService.getUsesKeyConnector()) {
|
||||
if (await this.main.keyConnectorService.getUsesKeyConnector()) {
|
||||
const logoutCommand = new LogoutCommand(
|
||||
this.main.authService,
|
||||
this.main.i18nService,
|
||||
|
||||
Reference in New Issue
Block a user