Beignet API reference
    Preparing search index...

    Type Alias ServerContextOptions<Ctx, Ports, ServiceInput>

    ServerContextOptions: {
        request: (
            args: RequestContextArgs<Ports>,
        ) => MaybePromise<ContextSeed<Ctx>>;
        service?: (
            args: ServiceContextArgs<Ports, ServiceInput>,
        ) => MaybePromise<ContextSeed<Ctx>>;
    } & ContextGateOption<Ctx, Ports>

    Context blueprint accepted by createServer(...).

    The server owns context assembly: request and service return context seeds, and the server attaches the gate declared by gate so identity changes can never authorize against a stale context.

    Type Parameters

    Type Declaration