Fix if app reads an old access token while it is updating
This commit is contained in:
parent
45ba722d5d
commit
a68647306f
1 changed files with 2 additions and 2 deletions
|
|
@ -211,7 +211,7 @@ angular.module('copayApp.services').factory('coinbaseService', function($http, $
|
|||
});
|
||||
};
|
||||
|
||||
root.init = function(cb) {
|
||||
root.init = lodash.throttle(function(cb) {
|
||||
if (lodash.isEmpty(credentials.CLIENT_ID)) {
|
||||
return cb('Coinbase is Disabled');
|
||||
}
|
||||
|
|
@ -243,7 +243,7 @@ angular.module('copayApp.services').factory('coinbaseService', function($http, $
|
|||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
}, 10000);
|
||||
|
||||
var _get = function(endpoint, token) {
|
||||
return {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue