Fix bug where get_token was not being called