Refactor Glidera Authorization process
This commit is contained in:
parent
fc52a8cf87
commit
fcae682954
6 changed files with 230 additions and 229 deletions
|
|
@ -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);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue