def METHOD_NAME(self, kid):
    """
    Retrieve JWT keys from the URL.
    """
    resp = self.request(self.jwks_url(), method="GET")
    resp.raise_for_status()
    # find the proper key for the kid
    for key in resp.json()["keys"]:
        if key["kid"] == kid:
            return self.jwt_key_to_pem(key)
    raise DecodeError(f"Cannot find kid={kid}")