Google-api-javascript-client: Documentation in the Auth setup is broken.

Created on 26 Sep 2018  路  3Comments  路  Source: google/google-api-javascript-client

function init() {
gapi.load('auth2', function() { // Ready. });
}

should be

function init() {
gapi.load('auth2', function() { /* Ready.*/ });
}

All 3 comments

This error is on the Google Sign-In JavaScript client reference page in the Auth Setup section.

Ideally the example would demonstrate what to do in the Ready block.

function init() {
  gapi.load('auth2', function() {
    /* Ready. Make a call to gapi.auth2.init or some other API */
  });
}

Thanks.
This will be fixed soon with internal change 253834992.

Fixed. Changes are live!

Was this page helpful?
0 / 5 - 0 ratings