gapi.load('auth2', function(){ code example Example: google gapi auth2 get current token gapi.auth2.getAuthInstance().currentUser.get().wc.id_token