def revoke!
      raise CredentialsMissingError.new("No credentials to revoke") unless access_token

      do_request do
        body = {
          client_id: @api_client.id,
          client_secret: @api_client.secret,
          token: access_token.refresh_token || access_token.token,
        }

        @api_client.request(:post, "/oauth/token/revoke", body: body)
        @access_token = nil
      end
    end
def revoke!
      raise CredentialsMissingError.new("No credentials to revoke") unless access_token

      do_request do
        body = {
          client_id: @api_client.id,
          client_secret: @api_client.secret,
          token: access_token.refresh_token || access_token.token,
        }

        @api_client.request(:post, "/oauth/token/revoke", body: body)
        @access_token = nil
      end
    end
Internal: Revokes the refresh token and corresponding access tokens.

 Returns nothing.

 Raises Cronofy::CredentialsMissingError if no credentials available.