cuongdevjs / reactjs-social-login

Group Hook ReactJS components for login social network
https://react-social-login.netlify.app
MIT License
172 stars 76 forks source link

update older 'v2/me' in '/v2/userinfo' #136

Open Cecche00 opened 1 year ago

Cecche00 commented 1 year ago

In Linkedin 'Sign In with LinkedIn using OpenID Connect' there is '/v2/userinfo' that replace the old '/v2/me'

cuongdevjs commented 1 year ago

please tell me the purpose of this PR. Can you gimme a document link about this?

Cecche00 commented 1 year ago

if you go into your app products in linkedin.com/developers and click on 'view endpoints' in 'Sign In with LinkedIn using OpenID Connect' you find the right api to get the user info that is '/v2/userinfo'. api '/v2/me' is into 'Lead Sync API' but is not for do the linkedin authentication.

cuongdevjs commented 1 year ago

you can see more here: https://learn.microsoft.com/en-us/linkedin/shared/authentication/authorization-code-flow?context=linkedin%2Fconsumer%2Fcontext&tabs=HTTPS1

/v2/me is still used as a legal method.

Cecche00 commented 1 year ago

yes, but if you don't have access to 'Lead sync api' you cannot get '/v2/me'. this link explain how to retrieve members details: https://learn.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/sign-in-with-linkedin-v2#authenticating-members

Cecche00 commented 1 year ago

can you merge please?