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

Function getSignInRedirectContext

apps/web/src/lib/user/server.ts:401–407  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

399 user: NextUser | AdapterUser
400): CreateOrUpdateUserArgs | null {
401 if (account.provider !== 'email') return null;
402 assert(user.email, 'User email is required for email auth');
403
404 // Extract the actual domain from the email address
405 // This ensures admin detection works correctly for @kilocode.ai emails
406 const emailDomain = user.email.split('@')[1];
407 const hosted_domain = emailDomain || hosted_domain_specials.email;
408
409 return {
410 google_user_email: user.email,

Callers 1

signInFunction · 0.85

Calls 2

getMethod · 0.65

Tested by

no test coverage detected