@grafctory/http - v0.9.0
    Preparing search index...

    Module basic

    Basic authentication middleware.

    Attaches static Basic credentials to every request routed through the wrapped Fetch implementation.

    Usage

    import { createFetch } from "@grafctory/http";
    import { basic } from "@grafctory/http/basic";

    const client = createFetch(basic("user", "secret"));
    basic

    Creates a middleware authenticating requests with the Basic scheme.