def login(client, secret_id, rresp):
    """logging in as 'secret_id' with 'g-recaptcha-response'
        client (class Flask.testing.FlaskClient): the client
        secret_id (str): the secret_id to login
        rresp (str): the recapctha response code. can be empty in testing
    """
    return client.post('/auth', json={
        'id': secret_id,
        'g-recaptcha-response': rresp
    }, follow_redirects=True).get_json()