MCPcopy
hub / github.com/blitz-js/blitz / get

Function get

packages/blitz-auth/src/server/auth-sessions.ts:279–285  ·  view source on GitHub ↗
(target, prop, receiver)

Source from the content-addressed store, hash-verified

277const makeProxyToPublicData = <T extends SessionContextClass>(ctxClass: T): T => {
278 return new Proxy(ctxClass, {
279 get(target, prop, receiver) {
280 if (prop in target || prop === "then") {
281 return Reflect.get(target, prop, receiver)
282 } else {
283 return Reflect.get(target.$publicData, prop, receiver)
284 }
285 },
286 })
287}
288

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected