Add auth management on client side.