(opts: { headers: Headers })
| 26 | * @see https://trpc.io/docs/server/context |
| 27 | */ |
| 28 | export const createTRPCContext = async (opts: { headers: Headers }) => { |
| 29 | const user = await auth() |
| 30 | return { |
| 31 | auth: user, |
| 32 | db, |
| 33 | ...opts, |
| 34 | }; |
| 35 | }; |
| 36 | |
| 37 | /** |
| 38 | * 2. INITIALIZATION |
no outgoing calls
no test coverage detected