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

    Variable AuthenticationHandlerSchemaConst

    AuthenticationHandlerSchema: ZodObject<
        {
            handler: ZodLiteral<"authentication">;
            providers: ZodOptional<
                ZodObject<
                    {
                        http_basic: ZodOptional<
                            ZodObject<
                                {
                                    accounts: ZodOptional<
                                        ZodArray<ZodObject<(...), (...), (...), (...), (...)>, "many">,
                                    >;
                                    hash: ZodOptional<
                                        ZodObject<
                                            { algorithm: ... },
                                            "strip",
                                            ZodTypeAny,
                                            { algorithm?: ... },
                                            { algorithm?: ... },
                                        >,
                                    >;
                                    realm: ZodOptional<ZodString>;
                                },
                                "strip",
                                ZodTypeAny,
                                {
                                    accounts?: { password: ...; username: ... }[];
                                    hash?: { algorithm?: (...) | (...) };
                                    realm?: string;
                                },
                                {
                                    accounts?: { password: ...; username: ... }[];
                                    hash?: { algorithm?: (...) | (...) };
                                    realm?: string;
                                },
                            >,
                        >;
                    },
                    "strip",
                    ZodTypeAny,
                    {
                        http_basic?: {
                            accounts?: { password: string; username: string }[];
                            hash?: { algorithm?: string };
                            realm?: string;
                        };
                    },
                    {
                        http_basic?: {
                            accounts?: { password: string; username: string }[];
                            hash?: { algorithm?: string };
                            realm?: string;
                        };
                    },
                >,
            >;
        },
        "strip",
        ZodTypeAny,
        {
            handler: "authentication";
            providers?: {
                http_basic?: {
                    accounts?: { password: string; username: string }[];
                    hash?: { algorithm?: string };
                    realm?: string;
                };
            };
        },
        {
            handler: "authentication";
            providers?: {
                http_basic?: {
                    accounts?: { password: string; username: string }[];
                    hash?: { algorithm?: string };
                    realm?: string;
                };
            };
        },
    > = ...

    Authentication handler schema - HTTP basic auth

    const authHandler = AuthenticationHandlerSchema.parse({
    handler: "authentication",
    providers: {
    http_basic: {
    accounts: [{ username: "admin", password: "$2a$..." }],
    realm: "Admin Area",
    },
    },
    });