migrate to AuthClient module