react-linkedin-login-oauth2 icon indicating copy to clipboard operation
react-linkedin-login-oauth2 copied to clipboard

Invalid access token

Open antoinealej opened this issue 2 years ago • 5 comments

Hi guys,

When I'm getting the access token using Postman I receive a 350 character long token.

When I'm doing it using react-linkedin-login-oauth2 I receive a 211 character long token.

There is a length difference between the 2, the one from Postman is longer.

When I use the Postman token to query https://api.linkedin.com/v2/emailAddress?q=members&projection=(elements*(handle~)) it works properly but when I use the shorter token from react-linkedin-login-oauth2 I receive an error from linkedin:

{
  serviceErrorCode: 65600,
  message: 'Invalid access token',
  status: 401
}

Any idea what I could be doing wrong?

Thanks

antoinealej avatar Aug 19 '22 15:08 antoinealej

same here

chinmay4o avatar Aug 23 '22 12:08 chinmay4o

@nvh95 any tips about that?

antoinealej avatar Aug 28 '22 05:08 antoinealej

same here

Mohammad-Sahil avatar Sep 05 '22 13:09 Mohammad-Sahil

Same here... Has anyone found a solution?

samirahosseini937 avatar Nov 15 '23 12:11 samirahosseini937

Same here. This token doesn’t look right, check the value and try again.

emrests avatar Apr 26 '24 14:04 emrests