fixed g_auth() in example.