code: def has_logged_in(self):
          
          r = self.http.get(CHECKPOINT_URL)
          if r.state is False:
              return True
          # If logged out, flush cache
          self._reset_cache()
          return False
docs: Check whether the API has logged in