Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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);
- });
Add Comment
Please, Sign In to add comment