google gapi auth2 get current token

JavaScript
gapi.auth2.getAuthInstance().currentUser.get().wc.id_token
Source

Also in JavaScript: