def _auth(self):
    if ((not self._use_token) and self._connected and self._key and self.user):
        return (self.user, self._key)
    elif (self._connected and (self._jwt_token is not None)):
        return JWTAuth(self._jwt_token)
    elif (self._connected and (self._api_token is not None)):
        return APITokenAuth(self._api_token)
    elif self._connected:
        return APITokenAuth(os.environ['TERMINUSDB_ACCESS_TOKEN'])
    else:
        raise RuntimeError('Client not connected.')
def _auth(self):
    if ((not self._use_token) and self._connected and self._key and self.user):
        return (self.user, self._key)
    elif (self._connected and (self._jwt_token is not None)):
        return JWTAuth(self._jwt_token)
    elif (self._connected and (self._api_token is not None)):
        return APITokenAuth(self._api_token)
    elif self._connected:
        return APITokenAuth(os.environ['TERMINUSDB_ACCESS_TOKEN'])
    else:
        raise RuntimeError('Client not connected.')