Refactor Glidera Authorization process

This commit is contained in:
Gustavo Maximiliano Cortez 2017-02-14 12:36:28 -03:00
commit fcae682954
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
6 changed files with 230 additions and 229 deletions

View file

@ -247,6 +247,30 @@ angular.module('copayApp.services')
storage.remove('glideraToken-' + network, cb);
};
root.setGlideraPermissions = function(network, p, cb) {
storage.set('glideraPermissions-' + network, p, cb);
};
root.getGlideraPermissions = function(network, cb) {
storage.get('glideraPermissions-' + network, cb);
};
root.removeGlideraPermissions = function(network, cb) {
storage.remove('glideraPermissions-' + network, cb);
};
root.setGlideraStatus = function(network, status, cb) {
storage.set('glideraStatus-' + network, status, cb);
};
root.getGlideraStatus = function(network, cb) {
storage.get('glideraStatus-' + network, cb);
};
root.removeGlideraStatus = function(network, cb) {
storage.remove('glideraStatus-' + network, cb);
};
root.setCoinbaseRefreshToken = function(network, token, cb) {
storage.set('coinbaseRefreshToken-' + network, token, cb);
};