@property
def is_authenticated(self):
    'Checks for a valid authentication.'
    if ((self.token is not None) and utils.is_token_valid({'expires': self.token_expires})):
        return True
    else:
        return False
Checks for a valid authentication.
@property
def is_authenticated(self):
    
    if ((self.token is not None) and utils.is_token_valid({'expires': self.token_expires})):
        return True
    else:
        return False