javascript - how to signup user using google-plus integradation in web? -


hi i'm trying integrate google plus in web application. have added google-plus button using link page instructed.when click on button open window access user accept or cancel. how use object user login application?

function signincallback(authresult) { if (authresult['status']['signed_in']) {  // update app reflect signed in user  // hide sign-in button user authorized, example:  document.getelementbyid('signinbutton').setattribute(); } else {  // update app reflect signed out user  // possible error values:  //   "user_signed_out" - user signed-out  //   "access_denied" - user denied access app  //   "immediate_failed" - not automatically log in user  console.log('sign-in state: ' + authresult['error']); } } 


Comments

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -