node.js Server Side Authentication

22 views
Skip to first unread message

Matt Kirkland

unread,
Jun 18, 2018, 10:00:21 PM6/18/18
to Untappd API Developer Group
I am trying to get the authentication code from https://untappd.com/oauth/authenticate/?client_id=CLIENTID&response_type=code&redirect_url=REDIRECT_URL

I have tried a few npm packages to follow redirects but they are not working for me. One that i have been trying recently is 'follow-redirects'

const https = require('follow-redirects').https;

console.log('response:', response.responseUrl);
}).on('error', function (err) {
console.error('ERROR:::', err);
});


I replace the clientID and redirect url with my account settings and the response url gets return as nothing. Its an empty string. If i paste the url into my browser then i DO get the actual returned API code. What am i doing wrong?
Reply all
Reply to author
Forward
0 new messages