angular auth service and resources