fix auth process