Skip to content

Commit

Permalink
NGW-1436 Impossible to login/register with LinkedIn profile without p…
Browse files Browse the repository at this point in the history
…hoto
  • Loading branch information
9080tom committed Jul 8, 2021
1 parent 0551c8a commit 9626088
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/openid.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const getUserInfo = accessToken =>
// https://docs.microsoft.com/en-us/linkedin/shared/integrations/people/profile-api?context=linkedin/consumer/context
// and
// https://docs.microsoft.com/en-us/linkedin/shared/references/v2/profile/lite-profile
const picture = userDetails.profilePicture["displayImage~"]?.elements[1]?.identifiers[0]?.identifier
const picture = userDetails.profilePicture?.["displayImage~"]?.elements?.[1]?.identifiers?.[0]?.identifier;
const claims = {
sub: `${userDetails.id}`, // OpenID requires a string
firstName: `${userDetails.localizedFirstName}`,
Expand Down

0 comments on commit 9626088

Please sign in to comment.