Log out, revoking the access tokens
        and forgetting the login details if they were given.

def logout(self):
        """
        Log out, revoking the access tokens
        and forgetting the login details if they were given.
        """

        self.revoke_refresh_token()
        self.revoke_access_token()

        self._username, self._password = None, None