refactored auth-service and created transformRequest for webapi calls