async def token_request_from_auth_url(self, method, url, token_params, headers, auth_params):
    body = None
    params = None
    if (method == 'GET'):
        body = {}
        params = dict(auth_params, **token_params)
    elif (method == 'POST'):
        params = {}
        body = dict(auth_params, **token_params)
    from ably.http.http import Response
    async with httpx.AsyncClient(http2=True) as client:
        resp = (await client.request(method=method, url=url, headers=headers, params=params, data=body))
        response = Response(resp)
    AblyException.raise_for_response(response)
    try:
        token_request = response.to_native()
    except ValueError:
        token_request = response.text
    return token_request
async def token_request_from_auth_url(self, method, url, token_params, headers, auth_params):
    body = None
    params = None
    if (method == 'GET'):
        body = {}
        params = dict(auth_params, **token_params)
    elif (method == 'POST'):
        params = {}
        body = dict(auth_params, **token_params)
    from ably.http.http import Response
    async with httpx.AsyncClient(http2=True) as client:
        resp = (await client.request(method=method, url=url, headers=headers, params=params, data=body))
        response = Response(resp)
    AblyException.raise_for_response(response)
    try:
        token_request = response.to_native()
    except ValueError:
        token_request = response.text
    return token_request