Fix client side auth process