diff --git a/lib/codeplex.js b/lib/codeplex.js index 0d5ab71..ae1e34b 100644 --- a/lib/codeplex.js +++ b/lib/codeplex.js @@ -38,16 +38,16 @@ function getCodeplex(account, appConfig, resourcePath, callback) { if (fin.Message) { if (appConfig.clientId && appConfig.clientSecret && fin.Message === 'Authentication required.') { var tokenProvider = new TokenProvider('https://www.codeplex.com/oauth/token', { - refresh_token: account.refreshToken, - client_id: appConfig.clientId, - client_secret: appConfig.clientSecret + refresh_token: account.refreshToken, + client_id: appConfig.clientId, + client_secret: appConfig.clientSecret }); tokenProvider.getToken(function (err, token) { if (err) { callback(err, null); } else { account.accessToken = token; - getCodeplex(account, resourcePath, callback); + getCodeplex(account, appConfig, resourcePath, callback); } }); }