mirror of
https://github.com/ArthurDanjou/trpc-nuxt.git
synced 2026-02-01 04:37:55 +01:00
update docs
This commit is contained in:
@@ -13,7 +13,6 @@ Before you can access request headers in any context or middleware, you need to
|
|||||||
## Create context from request headers
|
## Create context from request headers
|
||||||
|
|
||||||
```ts [server/trpc/context.ts]
|
```ts [server/trpc/context.ts]
|
||||||
import type { H3Event } from 'h3'
|
|
||||||
import { inferAsyncReturnType } from '@trpc/server'
|
import { inferAsyncReturnType } from '@trpc/server'
|
||||||
import { decodeAndVerifyJwtToken } from './somewhere/in/your/app/utils'
|
import { decodeAndVerifyJwtToken } from './somewhere/in/your/app/utils'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user