Skip to content

Commit

Permalink
Revert "fixed linkedin profile picture issue" (#774)
Browse files Browse the repository at this point in the history
  • Loading branch information
pilcrowonpaper authored Jun 23, 2023
1 parent 1d7d359 commit 75c8fc4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/oauth/src/providers/linkedin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,11 @@ export const linkedin = <_Auth extends Auth>(auth: _Auth, config: Config) => {

const getProviderUser = async (accessToken: string) => {
const linkedinProfile = await getProfile(accessToken);
const displayImageElement = linkedinProfile?.profilePicture?.["displayImage~"]?.elements
?.slice(-1)
?.pop() ?? null;
const displayImageElement = linkedinProfile.profilePicture[
"displayImage~"
]?.elements
?.slice(-1)
?.pop();
const linkedinUser: LinkedinUser = {
id: linkedinProfile.id,
firstName: linkedinProfile.localizedFirstName,
Expand Down

1 comment on commit 75c8fc4

@vercel
Copy link

@vercel vercel bot commented on 75c8fc4 Jun 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.