MCPcopy Create free account
hub / github.com/ZingerLittleBee/ServerBee / createContext

Function createContext

packages/api/src/context.ts:3–10  ·  view source on GitHub ↗
({ req }: { req: Request })

Source from the content-addressed store, hash-verified

1import { auth } from '@serverbee/auth'
2
3export async function createContext({ req }: { req: Request }) {
4 const session = await auth.api.getSession({
5 headers: req.headers
6 })
7 return {
8 session
9 }
10}
11
12export type Context = Awaited<ReturnType<typeof createContext>>

Callers 5

theme-provider.tsxFile · 0.85
chart.tsxFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected