Skip to content

Commit

Permalink
fix: dont prompt for passphrase if provided via flag (#394)
Browse files Browse the repository at this point in the history
Co-authored-by: Carlos Rincon <“carlos.r@affinidi.com”>
  • Loading branch information
carlos-affinidi and Carlos Rincon authored Jul 10, 2024
1 parent f627e84 commit fe6532a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/token/create-token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export class CreateToken extends BaseCommand<typeof CreateToken> {
}

if (promptFlags['auto-generate-key'] && !promptFlags['no-input']) {
promptFlags.passphrase = validateInputLength(
promptFlags.passphrase ??= validateInputLength(
await input({
message: 'Enter a passphrase to encrypt the private key. Leave it empty for no encryption',
}),
Expand Down

0 comments on commit fe6532a

Please sign in to comment.