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

Function createAccountInfo

apps/web/src/lib/user/server.ts:338–359  ·  view source on GitHub ↗
(
  account: Account,
  user: NextUser | AdapterUser,
  profile: Profile | undefined
)

Source from the content-addressed store, hash-verified

336 } catch (error) {
337 captureException(error, {
338 tags: { operation: 'openai_chatgpt_connection_persist' },
339 });
340 }
341}
342
343function createAppleAccountInfo(
344 account: Account,
345 user: NextUser | AdapterUser
346): CreateOrUpdateUserArgs | null {
347 if (account.provider !== 'apple') return null;
348 assert(user.email, 'User email is required for Apple auth');
349
350 return {
351 google_user_email: user.email,
352 google_user_name: user.name || user.email.split('@')[0],
353 google_user_image_url: '',
354 hosted_domain: hosted_domain_specials.apple,
355 provider: account.provider,
356 provider_account_id: account.providerAccountId,
357 display_name: null,
358 };
359}
360
361function createGitHubAccountInfo(
362 account: Account,

Callers 2

signInFunction · 0.85
jwtFunction · 0.85

Calls 9

createGoogleAccountInfoFunction · 0.85
createAppleAccountInfoFunction · 0.85
createGitHubAccountInfoFunction · 0.85
createGitlabAccountInfoFunction · 0.85
createDiscordAccountInfoFunction · 0.85
createEmailAccountInfoFunction · 0.85
createFakeAccountInfoFunction · 0.85
createSSOAccountInfoFunction · 0.85

Tested by

no test coverage detected