code: def is_authenticated(self):
          
          token = self.con.token_backend.token
          if not token:
              token = self.con.token_backend.get_token()
  
          return token is not None and not token.is_expired
docs: Checks whether the library has the authentication and that is not expired
          :return: True if authenticated, False otherwise