'Login using authentication token and return the client.'

def login_by_token(self):

    from matrix_client.client import MatrixClient
    return MatrixClient(base_url=self.homeserver, token=self.auth_tokens[self.mx_id], user_id=self.username, valid_cert_check=self.verify_tls)
