MCPcopy
hub / github.com/BuilderIO/agent-native / getRequestUserEmail

Function getRequestUserEmail

packages/core/src/server/request-context.ts:129–133  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

127 * `process.env.AGENT_USER_EMAIL`.
128 */
129export function getRequestUserEmail(): string | undefined {
130 const store = als.getStore();
131 if (store !== undefined) return store.userEmail;
132 return process.env.AGENT_USER_EMAIL;
133}
134
135/**
136 * Get the current request's org ID.

Callers 15

connect-video.tsFile · 0.90
currentOwnerEmailFunction · 0.90
delete-item.tsFile · 0.90
weights-history.tsFile · 0.90
update-meal.tsFile · 0.90
meals-history.tsFile · 0.90
update-exercise.tsFile · 0.90
log-exercise.tsFile · 0.90
list-meals.tsFile · 0.90
delete-meal.tsFile · 0.90
list-weights.tsFile · 0.90

Calls

no outgoing calls

Tested by 1