update docs

This commit is contained in:
wobsoriano
2022-11-24 13:05:32 -08:00
parent de690a7914
commit 3552017e4f
4 changed files with 4 additions and 0 deletions

View File

@@ -6,6 +6,10 @@ title: Authorization
The `createContext` function is called for each incoming request so here you can add contextual information about the calling user from the request object.
::alert{type="info"}
Before you can access request headers in any context or middleware, you need to set the outgoing request headers. See [here](/get-started/tips/headers).
::
## Create context from request headers
```ts [server/trpc/context.ts]