From 3642de134703261df6534162af4fcf467979e894 Mon Sep 17 00:00:00 2001 From: Cecche00 Date: Wed, 27 Sep 2023 15:31:39 +0200 Subject: [PATCH] Update index.tsx In Linkedin 'Sign In with LinkedIn using OpenID Connect' there is '/v2/userinfo' that replace the old '/v2/me' --- src/LoginSocialLinkedin/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/LoginSocialLinkedin/index.tsx b/src/LoginSocialLinkedin/index.tsx index c4eb923..ad80a76 100644 --- a/src/LoginSocialLinkedin/index.tsx +++ b/src/LoginSocialLinkedin/index.tsx @@ -58,9 +58,9 @@ export const LoginSocialLinkedin = ({ fetch( `https://api.allorigins.win/get?url=${encodeURIComponent( LINKEDIN_API_URL + - '/v2/me?oauth2_access_token=' + - data.access_token + - '&projection=(id,profilePicture(displayImage~digitalmediaAsset:playableStreams),localizedLastName, firstName,lastName,localizedFirstName)', + '/v2/userinfo?oauth2_access_token=' + + data.access_token + // +'&projection=(id,profilePicture(displayImage~digitalmediaAsset:playableStreams),localizedLastName, firstName,lastName,localizedFirstName)', )}`, { method: 'GET',