Fixed auth problem in swift proxy