Skip to content

Commit 0f2be07

Browse files
committed
fix: simplify oauth client id prompt path
1 parent ba1f7c4 commit 0f2be07

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/commands/auth.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,8 @@ export function registerAuthCommand(program: Command): void {
9494
let clientId = optionClientId || existingClientId;
9595

9696
if (!clientId) {
97-
const clientIdPrompt = existingClientId
98-
? `OAuth Client ID (default: ${existingClientId}): `
99-
: "OAuth Client ID: ";
100-
const clientIdInput = await prompt(clientIdPrompt);
101-
clientId = clientIdInput.trim() || existingClientId;
97+
const clientIdInput = await prompt("OAuth Client ID: ");
98+
clientId = clientIdInput.trim();
10299
}
103100

104101
if (!clientId) {

0 commit comments

Comments
 (0)