window.gapi.load('client:auth2' code example Example: google gapi auth2 get current token gapi.auth2.getAuthInstance().currentUser.get().wc.id_token