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

Function parseLinkedInProfileName

apps/web/src/lib/user/server.ts:302–313  ·  view source on GitHub ↗
(profile: {
  name?: string;
  given_name?: string;
  family_name?: string;
})

Source from the content-addressed store, hash-verified

300 google_user_image_url: user.image || '',
301 provider: account.provider,
302 provider_account_id: account.providerAccountId,
303 display_name: null, // LinkedIn OAuth response does not include the vanity URL slug needed to construct a profile link
304 };
305}
306
307function createDiscordAccountInfo(
308 account: Account,
309 user: NextUser | AdapterUser
310): CreateOrUpdateUserArgs | null {
311 if (account.provider !== 'discord') return null;
312 if (!user.email) return null;
313
314 return {
315 google_user_email: user.email,
316 google_user_name: user.name || '',

Callers 2

server.test.tsFile · 0.90
profileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected