Interface: AstroContext
Defined in: packages/astro/src/server.ts:49
The part of Astro's context this package uses. Astro in a page, the context of an endpoint (APIContext) and the context of a middleware all have it. Only request is read by the guards; getSubject and team get the whole object.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
cookies | object | - | packages/astro/src/server.ts:56 |
cookies.get | (key) => | { value: string; } | undefined | - | packages/astro/src/server.ts:56 |
locals | Locals | App.Locals: what your auth middleware put there (locals.user). | packages/astro/src/server.ts:55 |
params | Readonly<Record<string, string | undefined>> | The route params: params.teamId on src/pages/teams/[teamId]/.... | packages/astro/src/server.ts:53 |
request | Request | - | packages/astro/src/server.ts:50 |
url | URL | - | packages/astro/src/server.ts:51 |
