(profile: {
name?: string;
given_name?: string;
family_name?: string;
})
| 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 | |
| 307 | function 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 || '', |
no outgoing calls
no test coverage detected