getting token logic is packed into AuthTask.java.