so I am just upgrading from LinkedIn oauth 1.0 to 2.0 and I have been getting this error for about a day now. I saw a post about it for php but I cannot figure it out in Node JS (Javascript) here is my current code :
axios
.post("https://www.linkedin.com/oauth/v2/accessToken", {
grant_type: "authorization_code",
code: req.query.code,
redirect_uri: keys.linkedinCallbackURL,
client_id: keys.linkedinConsumerKey,
client_secret: keys.linkedinConsumerSecret
})
.then(res2 => {
console.log(res2);
})
.catch(error => {
console.log(error);
});
If you have any ideas let me know :)
Link to php solution: LinkedIn OAuth a required parameter "clien_id" is missing
Link to LinkedIn guide: https://developer.linkedin.com/docs/oauth2 (error occurring on step 3)