1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 01:33:33 +00:00

Added --apiKey option to the login command

This commit is contained in:
Addison Beck
2020-11-01 14:57:33 -05:00
parent 611e8760c6
commit 421de80daf
2 changed files with 2 additions and 1 deletions

View File

@@ -30,7 +30,7 @@ export class LoginCommand extends BaseLoginCommand {
};
this.success = async () => {
await syncService.fullSync(true);
if (this.cmd.sso != null && this.canInteract) {
if ((this.cmd.sso != null || this.cmd.apiKey != null) && this.canInteract) {
const res = new MessageResponse('You are logged in!', '\n' +
'To unlock your vault, use the `unlock` command. ex:\n' +
'$ bw unlock');