getBasicProfile javascript code example Example: google gapi auth2 get current token gapi.auth2.getAuthInstance().currentUser.get().wc.id_token