def METHOD_NAME(client) -> None:
    """The authcode endpoint requires a login."""
    rv = client.get('/api/1/auth', follow_redirects=True)
    assert rv.status_code == 200
    assert rv.metarefresh is not None
    # Auth is attempting to reload itself using meta-refresh to get a cookie
    assert urlsplit(rv.metarefresh.url).path == '/api/1/auth'
    rv = client.get(rv.metarefresh.url)
    assert rv.status_code == 302
    assert urlsplit(rv.location).path == '/login'