made OAuth.getToken promise based