Coinbase connection issues and logout from tab-setting

This commit is contained in:
Gustavo Maximiliano Cortez 2016-12-08 13:06:01 -03:00
commit 539583a2af
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
9 changed files with 130 additions and 127 deletions

View file

@ -177,7 +177,10 @@ angular.module('copayApp.services').factory('coinbaseService', function($http, $
if (err) return cb(err);
_refreshToken(refreshToken, function(err, newToken) {
if (err) return cb(err);
return cb(null, {accessToken: newToken, accountId: accountId});
_getMainAccountId(newToken, function(err, accountId) {
if (err) return cb(err);
return cb(null, {accessToken: newToken, accountId: accountId});
});
});
});
} else {