I’ve successfully created an authUrl using Dwolla’s official Node package, and I’ve successfully used my site to get a code from Dwolla and be redirected back to my site. I can grab this code, but can’t seem to get a refresh token as the results are undefined. Here is my code:
Dwolla.finishAuth(code, redirect_uri, function(err, auth) {
console.log('Dwolla auth results...');
console.dir(auth);
var access_token = auth.access_token;
var refresh_token = auth.refresh_token;
}
My console logs the following:
Dwolla auth results...
undefined
var access_token = auth.access_token;
TypeError: Cannot read property 'access_token' of undefined
in my case i’m getting this error
"Invalid application credentials."
spencer
(Spencer Hunter - Lead Developer Advocate @ Dwolla)
6
@manas.ghatage, Can you provide additional context? What you’ve tried, where you are running into issues, what the exact error is, is this related to the original topic post, etc.? Thanks!