def get_rsa_from_jwks(jwks, jwt_kid):
    """
    Searches the JWKS for the signing key used
    for the JWT. Returns a dict of the JWK
    properties if found, None otherwise.
    :param jwks: The set of JWKs from Auth0
    :param jwt_kid: The key ID of the signing key
    :return: dict
    """
    for key in jwks['keys']:
        if key['kid'] == jwt_kid:
            rsa_key = {'kty': key['kty'], 'kid': key['kid'], 'use': key[
                'use'], 'n': key['n'], 'e': key['e']}
            return rsa_key
    return None
