diff --git a/src/program.ts b/src/program.ts index d6c543e63a9..478525c6601 100644 --- a/src/program.ts +++ b/src/program.ts @@ -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,