Docs
Types

ProcedureContext

The `context` object every procedure handler and middleware receives.

The context argument in a procedure handler and in middleware is a ProcedureContext. It bundles the server-side services and adapters you reach for in a handler: the WordPress client, logger, cookies, auth, and more.

Prop

Type

The adapter-backed fields (getAuthUser, getConnInfo, verifyCaptcha, cookies) resolve through the adapters you register. A procedure's handler receives this base plus whatever its middleware added to context via next({ context }).