Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/commands/auth/login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export default defineMetabaseCommand({
const method = await chooseLoginMethod(metadata, args.clientId);

if (method === "apiKey") {
const promptedKey = await promptForApiKey();
const promptedKey = await promptForApiKey(url);
await completeLogin(
profileName,
url,
Expand Down Expand Up @@ -195,9 +195,9 @@ async function chooseLoginMethod(
});
}

async function promptForApiKey(): Promise<string> {
async function promptForApiKey(url: string): Promise<string> {
return promptPassword({
message: "API key",
message: `API key - create one at ${url}/admin/settings/authentication/api-keys`,
mask: "•",
validate: (input) => (input ? undefined : "API key is required"),
});
Expand Down
Loading