Optional authenticate?: ((authentication: Authentication) => boolean)Method to take in authentication data and return whether the user is allowed
Optional defaultDefault Authentication metadata (as in, if {type: "bearer", token: ""} is provided, estuary-rpc-server will attempt to extract a bearer token from all requests, and only allow requests to complete if that token results in the authenticate method passes, or unless the metadata specifically assigns authentication for a given endpoint to null)
Optional middlewares?: Middleware<Meta>[]Midlewares to execute while executing all endpoints, using a complet ApiContext and Metadata definition
Port number your server is bound to
Optional restMiddlewares to execute before executing REST endpoints, using only data available in the IncomingMessage
Optional staticSee StaticFileOpts for usage around serving staticfiles in common patterns
Generated using TypeDoc
Options passed to createApiServer for running your server
Params
Meta The custom Metadata type