MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / findUserByEmail

Function findUserByEmail

apps/web/src/lib/user/index.ts:323–327  ·  view source on GitHub ↗
(email: string)

Source from the content-addressed store, hash-verified

321
322 // A passkey never owns a `user_auth_provider` row: the credential is bound to
323 // the Kilo user id in `passkey_credentials`, and the redeemed sign-in ticket
324 // already proved that id, so the provider account id *is* the user id.
325 // Resolve it directly and leave the account's hosted domain and display name
326 // untouched — the passkey path settles no user-account changes.
327 if (args.provider === 'passkey') {
328 return (await findUserById(args.provider_account_id)) ?? null;
329 }
330

Callers 3

POSTFunction · 0.90
createOrUpdateUserFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected