(url)
return resp.json()
Fetch public keys used for verifying signatures.

    Args:
        url: URL where keys can be fetched.

    Raises:
        JwTKeyError if keys cannot be fetched.

    Returns:
        HTTP response.
Fetch public keys used for verifying signatures.
Fetch public keys used for verifying signatures .
def _fetch_public_keys(url):
    """Fetch public keys used for verifying signatures.

    Args:
        url: URL where keys can be fetched.

    Raises:
        JwTKeyError if keys cannot be fetched.

    Returns:
        HTTP response.
    """
    try:
        resp = requests.get(url)
    except requests.exceptions.RequestException as e:
        raise JwtKeyError('Cannot fetch public keys: {}'.format(e)) from e
    if resp.status_code != HTTP_STATUS_CODE_OK:
        raise JwtKeyError(
            'Cannot fetch public keys: {}'.format(resp.status_code))
    return resp.json()
def _fetch_public_keys ( url ) : try : resp = requests . get ( url ) except requests . exceptions . RequestException as e : raise JwtKeyError ( 'Cannot fetch public keys: {}' . format ( e ) ) from e if resp . status_code != HTTP_STATUS_CODE_OK : raise JwtKeyError ( 'Cannot fetch public keys: {}' . format ( resp . status_code ) ) return resp . json ( )