From 49aedbc7e8d3a90bc6fb82f7303681be07ef1727 Mon Sep 17 00:00:00 2001 From: Robert Field Date: Fri, 23 Aug 2024 18:40:12 +0100 Subject: [PATCH] feat: hide klevu secret (#239) * feat: hide Klevu rest auth key with * mask * chore: add changeset --- .changeset/witty-rockets-fetch.md | 5 +++++ .../commands/integration/klevu/klevu-integration-command.tsx | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changeset/witty-rockets-fetch.md diff --git a/.changeset/witty-rockets-fetch.md b/.changeset/witty-rockets-fetch.md new file mode 100644 index 00000000..a8f73852 --- /dev/null +++ b/.changeset/witty-rockets-fetch.md @@ -0,0 +1,5 @@ +--- +"composable-cli": patch +--- + +hide Klevu rest auth key as \* masked during input diff --git a/packages/composable-cli/src/commands/integration/klevu/klevu-integration-command.tsx b/packages/composable-cli/src/commands/integration/klevu/klevu-integration-command.tsx index 55a9ba2e..3758fcd1 100644 --- a/packages/composable-cli/src/commands/integration/klevu/klevu-integration-command.tsx +++ b/packages/composable-cli/src/commands/integration/klevu/klevu-integration-command.tsx @@ -323,7 +323,8 @@ async function klevuOptionsPrompts( if (!argsRestAuthKey) { const { klevuRestAuthKey } = await inquirer.prompt([ { - type: "string", + type: "password", + mask: "*", name: "klevuRestAuthKey", message: "What is your Klevu rest auth key?", },