Add getToken() method to shared methods