Fix auth processing