@accelerated-software-development/caddy-api-client - v0.2.2
    Preparing search index...

    Function createBasicAuthAccounts

    • Create multiple basic auth accounts at once

      Parameters

      • users: { password: string; username: string }[]

        Array of {username, password} pairs

      • Optionaloptions: { rounds?: number; useCaddyCLI?: boolean }

        Optional configuration

      Returns Promise<{ password: string; username: string }[]>

      Promise resolving to array of account objects with hashed passwords

      const accounts = await createBasicAuthAccounts([
      { username: "admin", password: "admin-pass" },
      { username: "user", password: "user-pass" }
      ]);