static async getSecretInputFromUser()

in src/views/credentialView.ts [17:29]


  static async getSecretInputFromUser(placeHolder: string | undefined) {
    const apiSecret = await vscode.window.showInputBox({
      prompt: "Enter your AMO API Secret",
      title: "AMO API Secret",
      placeHolder,
      password: true,
      ignoreFocusOut: true,
    });
    if (!apiSecret) {
      throw new Error("No API Secret provided.");
    }
    return apiSecret;
  }