title: LinkedIn oauth error A required parameter "client_id" is missing
body: <p>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 : </p>
  
  <pre><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 =&gt; {
        console.log(res2);
      })
      .catch(error =&gt; {
        console.log(error);
      });
  </code></pre>
  
  <p>If you have any ideas let me know :)</p>
  
  <p>Link to php solution: <a href="https://stackoverflow.com/questions/39369757/linkedin-oauth-a-required-parameter-clien-id-is-missing">LinkedIn OAuth a required parameter &quot;clien_id&quot; is missing</a></p>
  
  <p>Link to LinkedIn guide: <a href="https://developer.linkedin.com/docs/oauth2" rel="nofollow noreferrer">https://developer.linkedin.com/docs/oauth2</a>
  (error occurring on step 3)</p>