Fixed auth flag not actually being returned