AskSQL API Reference (core v0.10.0)
    Preparing search index...

    Type Alias AuthHook

    AuthHook: (
        req: ServerRequest,
    ) => Promise<AuthContext | null> | AuthContext | null

    The host resolves identity from its own session/JWT and returns the caller's scope. Throwing or returning null denies the request; the server never fails open.

    Type Declaration