Ejemplo n.º 1
0
 _onDrop: function Sync__onDrop() {
     if (!Service.enabled) {
         return;
     }
     this._logger.debug("Drop");
     Auth.logout();
     this.cleanClient();
 },
Ejemplo n.º 2
0
 _processHTTPError: function Sync_processError(error, status) {
     if (status === 401) {
         if (Auth.authorized) {
             Auth.logout();
             Auth.state = LOGIN_STATES.EXPIRED;
             return false;
         }
     }
     if (error) {
         return true;
     }
     return false;
 },