LinkedIn API: The token used in the request has been revoked by the user

Viewed 891

We have integrated LinkedIn for the automation using OAuth2.0 3-legged authentication method. It was working fine earlier but now, our users are getting the following issue:

"The token used in the request has been revoked by the user"

Issue Details: Our code, programmatically generates a new access token for the authenticated user with using the refresh token and when it gets fired in the next API call, our users are getting the above error. But, it starts working after 3 to 5 min.

Note: Our system uses refresh token to get the access token in each API call of the LinkedIn endpoint.

Error:

{ "serviceErrorCode": 65601, "message": "The token used in the request has been revoked by the user", "status": 401 }

Kindly, look into this matter and provide a quick solution except the delay after generating the token.

1 Answers

You need to use newly created LinkedIn connection throughout your workflow(s) and LinkedIn action steps. Delete all the previous LinkedIn connections and keep using the newly created connection. The LinkedIn connection will work for an year this means that and you only need to re-authorize your LinkedIn application in your Pabbly Connect workflows after an year.

Read more: https://forum.pabbly.com/threads/troubleshooting-linkedin.2023/

Related