refactor: change uathentication service to jquery