jquery - Uncaught TypeError: Cannot read property 'signIn' of undefined, gapi auth2 -
the gapi auth2 not working saying uncaught typeerror: cannot read property 'signin' of undefined. same code working in server. idea
var googleauth2; var startgoogleapp = function () { gapi.load('auth2', function () { gapi.client.load('plus', 'v1').then(function () { gapi.auth2.init({fetch_basic_profile: true, scope: 'https://www.googleapis.com/auth/plus.login'}).then( function () { console.log('init'); googleauth2 = gapi.auth2.getauthinstance(); }); }); }); } startgoogleapp();
Comments
Post a Comment