MCPcopy Create free account
hub / github.com/AlexErrant/Pentive / createContext

Function createContext

lrpc/src/lambdaHandler.ts:17–25  ·  view source on GitHub ↗
({
	event,
	context,
}: CreateAWSLambdaContextOptions<APIGatewayProxyEventV2>)

Source from the content-addressed store, hash-verified

15// move to Cloudflare when this is complete https://github.com/prisma/prisma/issues/15265
16
17function createContext({
18 event,
19 context,
20}: CreateAWSLambdaContextOptions<APIGatewayProxyEventV2>): Context {
21 const user = getUser(event.headers.authorization)
22 return {
23 user,
24 }
25}
26
27export const handler = awsLambdaRequestHandler({
28 router: appRouter,

Callers

nothing calls this directly

Calls 1

getUserFunction · 0.90

Tested by

no test coverage detected