code: function isLoggedInAsync(cb) {
        if (currentUser.hasOwnProperty('$promise')) {
          currentUser.$promise.then(function () {
            cb(true);
          }).catch(function () {
            cb(false);
          });
        } else if (currentUser.hasOwnProperty('role')) {
          cb(true);
        } else {
          cb(false);
        }
      }
docs: @ngdoc function
  @name isLoggedInAsync
  @methodOf auth.service:Auth
  @description
  Waits for currentUser to resolve before checking if user is logged in
  
  @param {Function} cb A Callback