function init() {
gapi.load('auth2', function() { // Ready. });
}
should be
function init() {
gapi.load('auth2', function() { /* Ready.*/ });
}
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!