Setu-TS
    Preparing search index...

    Interface AuthMiddlewareOption

    Global authentication middleware configuration.

    Authentication runs for every path by default. Supply exclusions only for routes that never need a principal, or disable registration to attach authMiddleware at route level yourself.

    0.8.0

    interface AuthMiddlewareOption {
        exclude?: readonly PathPattern[];
        priority?: number;
    }
    Index
    exclude?: readonly PathPattern[]

    Paths that skip passive authentication. Defaults to no exclusions.

    priority?: number

    Execution priority. Defaults to the authentication band at 300.