MCPcopy Create free account
hub / github.com/Elliott-Chong/normalhuman / createTRPCContext

Function createTRPCContext

src/server/api/trpc.ts:28–35  ·  view source on GitHub ↗
(opts: { headers: Headers })

Source from the content-addressed store, hash-verified

26 * @see https://trpc.io/docs/server/context
27 */
28export 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

Callers 2

createContextFunction · 0.90
server.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected