Wip getToken method