MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / lookup

Function lookup

server/src/auth/workos-client.ts:243–246  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

241 });
242
243 const lookup = async () => {
244 const existing = await workos.userManagement.listUsers({ email: normalized });
245 return existing.data.find((u) => u.email.toLowerCase() === normalized);
246 };
247
248 const existing = await lookup();
249 if (existing) return toUser(existing);

Callers 3

findOrCreateUserByEmailFunction · 0.85
assertPublicTargetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected