@supabase/middleware - v0.2.0
    Preparing search index...

    Interface Middleware<Key, Config, In, Contribution>

    The shape of a middleware produced by defineMiddleware.

    Two call signatures:

    • Config-onlymw(config) (or mw() for config-less) returns an Entry for use in a pipeline array.
    • Handlermw(config, handler) (or mw(handler)) returns the produced fetch handler directly, with Base inferred from the handler's ctx type. Base is constrained to In & BaseContext & NoConflict<Key, Base> so both prerequisite enforcement and collision detection surface at the call site.

    Type Parameters

    • Key extends string
    • Config
    • In extends object
    • Contribution