
Anonymous Community User asked a question.
Redirect URL for Serverside Authentication in Development
I'm currently attempting to get started with the podio API and when generating a key I put localhost as my redirect domain. I'm using node.js and i followed along with the podio-js/example for server side authentication. I get the following returned in my browser https://podio.com/oauth/authorize?client_id=freedomnation-bztc45&redirect_uri=localhost&response_type=code using this particular request: app.get('/', function(req,res) { var authCode = req.query.code; var errorCode = req.query.error; podio.isAuthenticated().then(function() { res.send('success'); }).catch(function(err) { if(typeof authCode !== 'undefined') { podio.getAccessToken(authCode,redirectURL, function(err,res) { //we are ready to make API calls res.send('success'); }); }else if (typeof errorCode !== 'undefined') { //an error occured res.send('error', {description: req.query.error_description}); }else { //We have neither an authCode nor have we authenticated before res.send(podio.getAuthorizationURL(redirectURL)); } }); }); Hits hitting my last else statement. Can someone help me determine why?